]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Validated inputs in `.input-group` shouldn't be behind sibling element (#33644)
authorJatin Mehta <mehtajatin05@gmail.com>
Thu, 13 May 2021 05:39:01 +0000 (11:09 +0530)
committerGitHub <noreply@github.com>
Thu, 13 May 2021 05:39:01 +0000 (08:39 +0300)
Added z-index property for input-group only for invalid state

scss/mixins/_forms.scss

index 283462fd56010cefaa7354f9fac9ee588e7ad829..dc5bdb0b92561d8b304dd8fafe5bcb5818c0c275 100644 (file)
   .input-group .form-control,
   .input-group .form-select {
     @include form-validation-state-selector($state) {
-      z-index: 3;
+      @if $state == "valid" {
+        z-index: 1;
+      } @else if $state == "invalid" {
+        z-index: 2;
+      }
+      &:focus {
+        z-index: 3;
+      }
     }
   }
 }