Skip to content

Commit

Permalink
feat(InlineMessage): add new type TASK-987 (#5305)
Browse files Browse the repository at this point in the history
Add new "info" type to `InlineMessage` (basically a blue color).
  • Loading branch information
magicznyleszek authored Nov 27, 2024
1 parent 0474aed commit 4f5af46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions jsapp/js/components/common/inlineMessage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
.k-icon {color: colors.$kobo-amber;}
}

.k-inline-message--type-info {
background-color: colors.$kobo-bg-blue;
.k-icon {color: colors.$kobo-blue;}
}

// We need a bit stronger specificity here
.k-inline-message p.k-inline-message__message {
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion jsapp/js/components/common/inlineMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Icon from 'js/components/common/icon';
import './inlineMessage.scss';

/** Influences the background color and the icon color */
export type InlineMessageType = 'default' | 'error' | 'success' | 'warning';
export type InlineMessageType = 'default' | 'error' | 'success' | 'warning' | 'info';

interface InlineMessageProps {
type: InlineMessageType;
Expand Down

0 comments on commit 4f5af46

Please sign in to comment.