]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update relative position hack for layers
authorMark Otto <markdotto@gmail.com>
Tue, 3 Nov 2020 20:56:24 +0000 (12:56 -0800)
committerXhmikosR <xhmikosr@gmail.com>
Fri, 6 Nov 2020 12:49:41 +0000 (14:49 +0200)
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

index 53715274a7f5bc22becf7b76cfa1711ff040b7b5..0990a15c6be1fae39a1a3f0b17153836eda8d980 100644 (file)
@@ -3,6 +3,7 @@
 //
 
 .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;
   }