Skip to content

Commit

Permalink
fix(forms): prevent that valid icon hides input content (#1306)
Browse files Browse the repository at this point in the history
* handle quantity selector, `.form-control-color`, normal inputs and `.form-check-input`
  • Loading branch information
julien-deramond authored Oct 17, 2022
1 parent 0a10af0 commit a64f2a1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scss/mixins/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@
}

@if $enable-validation-icons {
.form-control {
:not(.quantity-selector) > .form-control {
@include form-validation-state-selector($state) {
padding-right: $input-height-inner;
background-image: escape-svg($icon);
background-repeat: no-repeat;
background-position: right $input-height-inner-quarter top subtract($input-height-inner-quarter, 2px);
Expand All @@ -45,6 +46,12 @@
}
}
}

.form-control-color {
@include form-validation-state-selector($state) {
width: add($form-color-width, $input-height-inner);
}
}
}
} @else {
.#{$state}-feedback {
Expand Down Expand Up @@ -118,16 +125,9 @@
}
}

.form-control-color {
@include form-validation-state-selector($state) {
@if $enable-validation-icons {
width: add($form-color-width, $input-height-inner);
}
}
}

.form-check-input {
@include form-validation-state-selector($state) {
filter: none; // Boosted mod: remove filter to avoid having a blue border (invert of red border)
border-color: $color;

&:checked,
Expand Down

0 comments on commit a64f2a1

Please sign in to comment.