Skip to content

Commit

Permalink
feat: support for action position (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelclaesson authored Feb 11, 2025
1 parent 87e3690 commit 318a2ce
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions source/sass/component/_notice.scss
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,31 @@ $c-notice-border-radius: var(--notice-border-radius, $border-radius-sm) !default
@include stretch();
}

.c-notice.c-notice--action-below {
grid-template-areas:
"icon title"
"icon message"
". actions";

.c-notice__actions {
margin-top: var(--base, 8px);
justify-content: flex-start;
}

// Remove gaps when elements are missing
&:not(:has(.c-notice__title)) {
grid-template-areas:
"icon message"
". actions";
}

&:not(:has(.c-notice__message)) {
grid-template-areas:
"icon title"
". actions";
}
}

.c-notice + .c-notice {
margin-top: calc(#{$base} * 2);
}
Expand Down

0 comments on commit 318a2ce

Please sign in to comment.