1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Update relative position hack for layers

Switches to slightly more verbose, but more consistent, z-index layering we use elsewhere (e.g., pagination). Doing this ensures we're not toggling position on and off, but rather z-index.
This commit is contained in:
Mark Otto 2020-11-03 12:56:24 -08:00 committed by XhmikosR
parent 6a37612540
commit 3df4dd15e4

View file

@ -3,6 +3,7 @@
//
.accordion-button {
position: relative;
display: flex;
align-items: center;
width: 100%;
@ -39,8 +40,12 @@
@include transition($accordion-icon-transition);
}
&:hover {
z-index: 2;
}
&:focus {
position: relative;
z-index: 3;
outline: 0;
box-shadow: $btn-focus-box-shadow;
}