Skip to content

Commit

Permalink
Set toast z-index variable in the correct spot
Browse files Browse the repository at this point in the history
The .toast-container tries to use the z-index CSS variable, which is defined under .toast. 
However, this variable is not accessible to the container. This change copies the variable to the spot where it can be used.
  • Loading branch information
flavio-b authored and mdo committed Sep 20, 2022
1 parent d0117a1 commit 636bb49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scss/_toasts.scss
Expand Up @@ -38,6 +38,8 @@
}

.toast-container {
--#{$prefix}toast-zindex: #{$zindex-toast};

position: absolute;
z-index: var(--#{$prefix}toast-zindex);
width: max-content;
Expand Down

0 comments on commit 636bb49

Please sign in to comment.