Skip to content

Commit

Permalink
ensure Toasts are always position relative
Browse files Browse the repository at this point in the history
so they also stack when `inline`.
fixes #367
  • Loading branch information
Gilad Gray committed Jan 5, 2017
1 parent f7eae4b commit 9d6e077
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/components/toast/_toast.scss
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ $toast-margin: $pt-grid-size * 1.5 !default;
display: flex;
align-items: flex-start;

position: relative;
// toasts rely on relative positioning for stacking; override inline overlay styles (#367)
// stylelint-disable-next-line declaration-no-important
position: relative !important;
margin: $toast-margin 0 0;
border-radius: $pt-border-radius;
box-shadow: $pt-elevation-shadow-3;
Expand Down

0 comments on commit 9d6e077

Please sign in to comment.