Skip to content

Commit

Permalink
refactor(message): add header controls
Browse files Browse the repository at this point in the history
  • Loading branch information
tarantilis committed Jun 30, 2022
1 parent 43e5208 commit 960c2f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/ui/Message/Message.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Default.args = {

export const Success = Template.bind({});
Success.args = {
header: 'Success header',
content: 'This is a Success message',
icon: 'exclamation circle',
success: true,
Expand Down Expand Up @@ -86,6 +87,7 @@ Success.parameters = {

export const Warning = Template.bind({});
Warning.args = {
header: 'Warning header',
content: 'This is a Warning message',
icon: 'exclamation circle',
warning: true,
Expand Down Expand Up @@ -114,6 +116,7 @@ Warning.parameters = {

export const Error = Template.bind({});
Error.args = {
header: 'Error header',
content: 'This is an Error Message',
icon: 'exclamation circle',
error: true,
Expand Down Expand Up @@ -141,6 +144,7 @@ Error.parameters = {

export const Info = Template.bind({});
Info.args = {
header: 'Info header',
content: 'This is an Info message',
icon: 'exclamation circle',
info: true,
Expand Down
2 changes: 1 addition & 1 deletion theme/themes/eea/collections/message.variables
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
@listItemMargin: 0.3em;

/* Icon */
@iconDistance: 0.3em;
@iconDistance: @rem-space-4;

/* Close Icon */
@closeTopDistance: @verticalPadding - @lineHeightOffset;
Expand Down

0 comments on commit 960c2f7

Please sign in to comment.