diff options
| author | Mark Otto <[email protected]> | 2020-11-03 12:56:24 -0800 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2020-11-06 14:49:41 +0200 |
| commit | 3df4dd15e407dce8bc665fc0140497312856ec47 (patch) | |
| tree | 0e664e496066806acc1f48d8b66e607973d55c1d | |
| parent | 6a3761254050222d80eda2926ad6b6946a8787aa (diff) | |
| download | bootstrap-3df4dd15e407dce8bc665fc0140497312856ec47.tar.xz bootstrap-3df4dd15e407dce8bc665fc0140497312856ec47.zip | |
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.
| -rw-r--r-- | scss/_accordion.scss | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scss/_accordion.scss b/scss/_accordion.scss index 53715274a..0990a15c6 100644 --- a/scss/_accordion.scss +++ b/scss/_accordion.scss @@ -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; } |
