Skip to content

Commit

Permalink
fix(styles): add container for Message Strip in Notifications [ci vis…
Browse files Browse the repository at this point in the history
…ual] (#5649)
  • Loading branch information
InnaAtanasova committed Sep 20, 2024
1 parent faaba73 commit d1e423e
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions packages/styles/src/notification.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ $block: #{$fd-namespace}-notification;
--fdNotification_Border_Inline_Color: var(--fdNotification_Border_Left_Right_Color);

cursor: pointer;
position: relative;
padding-block: 1rem;
border-style: solid;
padding-inline: 1rem;
border-width: var(--sapList_BorderWidth);
background: var(--fdNotification_Background);
border-radius: var(--fdNotification_Border_Radius);
Expand Down Expand Up @@ -67,6 +64,7 @@ $block: #{$fd-namespace}-notification;
}

@include fd-reset();
@include fd-flex(column);
@include notification-states();

&:has(.#{$block}__actions):has(button) {
Expand All @@ -87,6 +85,10 @@ $block: #{$fd-namespace}-notification;
@include fd-flex() {
gap: 0.75rem;
};

position: relative;
padding-block: 1rem;
padding-inline: 1rem;
}

&__content {
Expand Down Expand Up @@ -181,10 +183,19 @@ $block: #{$fd-namespace}-notification;
}
}

&__message-container {
@include fd-reset();
&__message-strip-container {
padding-inline: 1rem 0.5rem;
padding-block: 1rem 0;

margin-block-end: 1rem;
&:empty {
padding-inline: 0;
padding-block: 0;
}

&:has(.fd-has-display-none) {
padding-inline: 0;
padding-block: 0;
}
}

// Banner Notification
Expand Down

0 comments on commit d1e423e

Please sign in to comment.