From: Mark Otto Date: Tue, 3 Nov 2020 20:56:24 +0000 (-0800) Subject: Update relative position hack for layers X-Git-Tag: v5.0.0-alpha3~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3df4dd15e407dce8bc665fc0140497312856ec47;p=thirdparty%2Fbootstrap.git 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. --- 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; }