Skip to content

Commit

Permalink
fix(forms): set background color for validated inputs (#1361)
Browse files Browse the repository at this point in the history
  • Loading branch information
louismaximepiton authored Jul 8, 2022
1 parent ead5230 commit ff301e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1001,8 +1001,8 @@ $input-placeholder-color: $gray-700 !default;
$input-plaintext-color: var(--#{$prefix}body-color) !default;

$input-height-inner: add($input-line-height * 1em, $input-padding-y * 2) !default;
// Boosted mod: no $input-height-inner-half
// Boosted mod: no $input-height-inner-quarter
$input-height-inner-half: $spacer !default; // Boosted mod
$input-height-inner-quarter: map-get($spacers, 2) !default; // Boosted mod

$input-height: 2.5rem !default;
// Boosted mod: no $input-height-sm
Expand Down
5 changes: 4 additions & 1 deletion scss/mixins/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
@if $enable-validation-icons {
.form-control {
@include form-validation-state-selector($state) {
background: $icon no-repeat right map-get($spacers, 2) center / $spacer;
background-image: escape-svg($icon);
background-repeat: no-repeat;
background-position: right $input-height-inner-quarter center;
background-size: $input-height-inner-half $input-height-inner-half;
}
}
}
Expand Down

0 comments on commit ff301e1

Please sign in to comment.