Skip to content

Commit 2ad135e

Browse files
MartijnCuppensXhmikosR
authored andcommitted
Update z-indices (#29292)
- `.carousel-caption` doesn't need a z-index. There are no non-static element in its containing block (`.carousel-item`) - The `z-index` of `.carousel-indicators` is way higher than it needs to be (`15`), the highest sibling `z-index` is `1`, so it can be set to `2` to be the top layer.
1 parent 19ee63a commit 2ad135e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scss/_carousel.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
right: 0;
149149
bottom: 0;
150150
left: 0;
151-
z-index: 15;
151+
z-index: 2;
152152
display: flex;
153153
justify-content: center;
154154
padding-left: 0; // override <ol> default
@@ -190,7 +190,6 @@
190190
right: (100% - $carousel-caption-width) / 2;
191191
bottom: 20px;
192192
left: (100% - $carousel-caption-width) / 2;
193-
z-index: 10;
194193
padding-top: 20px;
195194
padding-bottom: 20px;
196195
color: $carousel-caption-color;

0 commit comments

Comments
 (0)