]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Set toast z-index variable in the correct spot
authorflavio-b <flaviobombonatti@gmail.com>
Fri, 9 Sep 2022 22:07:16 +0000 (19:07 -0300)
committerMark Otto <otto@github.com>
Tue, 20 Sep 2022 11:36:45 +0000 (04:36 -0700)
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.

scss/_toasts.scss

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