Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2021-06-25 07:34:01 +0300
committerMark Otto <markdotto@gmail.com>2021-06-25 07:34:01 +0300
commit89187718c41fe24ecade16f4d9ac593992ace1cc (patch)
tree6fe43d55e3b883dda6f5703b2279d4fcafec1e8b
parentbbd87ca5fbe33e9ebd4c9c5890575cf5166e2546 (diff)
Fix z-indexes for modals and offcanvasespr/34149
This jostles a couple things, but for some reason we had the modal and offcanvas z-indexes interwoven. That's problematic, so this shifts the modal backdrop to be 5 less than the modal. The same applies to the offcanvas now, with offcanvas being _under_ modals and it's backdrop's z-index being 5 under.
-rw-r--r--scss/_offcanvas.scss2
-rw-r--r--scss/_variables.scss3
2 files changed, 3 insertions, 2 deletions
diff --git a/scss/_offcanvas.scss b/scss/_offcanvas.scss
index e6072b9c07..a089c2a081 100644
--- a/scss/_offcanvas.scss
+++ b/scss/_offcanvas.scss
@@ -15,7 +15,7 @@
}
.offcanvas-backdrop {
- @include overlay-backdrop(subtract($zindex-offcanvas, 1), $offcanvas-backdrop-bg, $offcanvas-backdrop-opacity);
+ @include overlay-backdrop($zindex-offcanvas-backdrop, $offcanvas-backdrop-bg, $offcanvas-backdrop-opacity);
}
.offcanvas-header {
diff --git a/scss/_variables.scss b/scss/_variables.scss
index d8a65193ec..455f942c89 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -907,8 +907,9 @@ $form-validation-states: (
$zindex-dropdown: 1000 !default;
$zindex-sticky: 1020 !default;
$zindex-fixed: 1030 !default;
-$zindex-modal-backdrop: 1040 !default;
+$zindex-offcanvas-backdrop: 1045 !default;
$zindex-offcanvas: 1050 !default;
+$zindex-modal-backdrop: 1055 !default;
$zindex-modal: 1060 !default;
$zindex-popover: 1070 !default;
$zindex-tooltip: 1080 !default;