Skip to content

Commit

Permalink
fix: Flashbar shadow z-index issue and pages background (#2885)
Browse files Browse the repository at this point in the history
  • Loading branch information
orangevolon authored and timogasda committed Nov 18, 2024
1 parent 239a345 commit 1b7803e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
8 changes: 8 additions & 0 deletions pages/app/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,11 @@ body {
}
}
}

/*
This sets a background color to the page's container
to reveal the effects of negative z-index.
*/
:global(#app) {
background-color: tokens.$color-background-container-content;
}
4 changes: 2 additions & 2 deletions src/flashbar/collapsible.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ the grid layout will be:
);
}

> .item:not(:last-child) > .flash::before,
> .item.flash::before {
> .item:not(:last-child) > .flash,
> .item.flash {
box-shadow: awsui.$shadow-flash-collapsed;
}
}
Expand Down
13 changes: 1 addition & 12 deletions src/flashbar/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,7 @@
color: awsui.$color-text-notification-default;
overflow-wrap: break-word;
word-wrap: break-word;

&::before {
@include styles.base-pseudo-element;
border-start-start-radius: awsui.$border-radius-flashbar;
border-start-end-radius: awsui.$border-radius-flashbar;
border-end-start-radius: awsui.$border-radius-flashbar;
border-end-end-radius: awsui.$border-radius-flashbar;
box-shadow: awsui.$shadow-flash-sticky;
}
&-refresh::before {
z-index: -1;
}
box-shadow: awsui.$shadow-flash-sticky;
}

.initial-hidden {
Expand Down

0 comments on commit 1b7803e

Please sign in to comment.