diff --git a/scss/_toasts.scss b/scss/_toasts.scss index 0a2d6ec875..889a936851 100644 --- a/scss/_toasts.scss +++ b/scss/_toasts.scss @@ -20,6 +20,8 @@ } .toast-container { + position: absolute; + z-index: $zindex-toast; width: max-content; max-width: 100%; pointer-events: none; diff --git a/scss/_variables.scss b/scss/_variables.scss index 566c967b94..5dd78ae2a8 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -1041,6 +1041,7 @@ $zindex-modal-backdrop: 1050 !default; $zindex-modal: 1055 !default; $zindex-popover: 1070 !default; $zindex-tooltip: 1080 !default; +$zindex-toast: 1090 !default; // scss-docs-end zindex-stack diff --git a/site/content/docs/5.1/components/toasts.md b/site/content/docs/5.1/components/toasts.md index 10093b6bc6..e8a9190958 100644 --- a/site/content/docs/5.1/components/toasts.md +++ b/site/content/docs/5.1/components/toasts.md @@ -49,7 +49,7 @@ Previously, our scripts dynamically added the `.hide` class to completely hide a Click the button below to show a toast (positioned with our utilities in the lower right corner) that has been hidden by default. -
+