From 3df4dd15e407dce8bc665fc0140497312856ec47 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 3 Nov 2020 12:56:24 -0800 Subject: 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. --- scss/_accordion.scss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3