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.
//
.accordion-button {
+ position: relative;
display: flex;
align-items: center;
width: 100%;
@include transition($accordion-icon-transition);
}
+ &:hover {
+ z-index: 2;
+ }
+
&:focus {
- position: relative;
+ z-index: 3;
outline: 0;
box-shadow: $btn-focus-box-shadow;
}