Skip to content

Commit

Permalink
Validated inputs in .input-group shouldn't be behind sibling element (
Browse files Browse the repository at this point in the history
#33644)

Added z-index property for input-group only for invalid state
  • Loading branch information
jatinmehta authored May 13, 2021
1 parent d80cb22 commit d81d0a9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scss/mixins/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,14 @@
.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;
}
}
}
}
Expand Down

0 comments on commit d81d0a9

Please # to comment.