]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix z-index target (#26361) 26470/head
authorysds <fellows3@gmail.com>
Mon, 7 May 2018 08:30:43 +0000 (17:30 +0900)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 7 May 2018 08:30:43 +0000 (11:30 +0300)
scss/_input-group.scss

index a559f15dff2b850fef0466d99c7846056951eb71..a8b0e59ed4a5a9e664bcfc7a8012b1265f081611 100644 (file)
     width: 1%;
     margin-bottom: 0;
 
-    // Bring the "active" form control to the top of surrounding elements
-    &:focus {
-      z-index: 3;
-    }
-
     + .form-control,
     + .custom-select,
     + .custom-file {
     }
   }
 
+  // Bring the "active" form control to the top of surrounding elements
+  > .form-control:focus,
+  > .custom-select:focus,
+  > .custom-file .custom-file-input:focus ~ .custom-file-label {
+    z-index: 3;
+  }
+
   > .form-control,
   > .custom-select {
     &:not(:last-child) { @include border-right-radius(0); }