diff options
author | Mark Otto <markdotto@gmail.com> | 2020-11-03 23:56:24 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2020-11-06 15:49:41 +0300 |
commit | 3df4dd15e407dce8bc665fc0140497312856ec47 (patch) | |
tree | 0e664e496066806acc1f48d8b66e607973d55c1d | |
parent | 6a3761254050222d80eda2926ad6b6946a8787aa (diff) |
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 53715274a7..0990a15c6b 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; } |