Skip to content

Commit

Permalink
fix(form control color): adjust size when valid feedback (#2341)
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond authored Oct 26, 2023
1 parent 4d39d3c commit a792e8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scss/mixins/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
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);
background-position: right subtract($input-height-inner-quarter, $input-border-width) top subtract($input-height-inner-quarter, $input-border-width);
background-size: $input-height-inner-half $input-height-inner-half;
}
}
Expand All @@ -49,7 +49,7 @@

.form-control-color {
@include form-validation-state-selector($state) {
width: add($form-color-width, $input-height-inner);
width: calc(#{$form-color-width} + #{$input-height-inner-half} + #{$input-height-inner-quarter} - #{$input-border-width}); // stylelint-disable-line function-disallowed-list
}
}
}
Expand Down

0 comments on commit a792e8b

Please sign in to comment.