0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

Set toast z-index variable in the correct spot

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.
This commit is contained in:
flavio-b 2022-09-09 19:07:16 -03:00 committed by Mark Otto
parent d0117a17d8
commit 636bb496c9

View File

@ -38,6 +38,8 @@
}
.toast-container {
--#{$prefix}toast-zindex: #{$zindex-toast};
position: absolute;
z-index: var(--#{$prefix}toast-zindex);
width: max-content;