Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix(text-field): Fixed asterisk color where it stays in error color e…
Browse files Browse the repository at this point in the history
…ven after input is resolved (#4576)
  • Loading branch information
Stéphane Domenet authored and abhiomkar committed Apr 12, 2019
1 parent 71a1180 commit ca502d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/mdc-textfield/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@
@include mdc-text-field-helper-text-validation-color($mdc-text-field-error);
@include mdc-text-field-caret-color($mdc-text-field-error);

@include mdc-required-text-field-label-asterisk_ {
@include mdc-theme-prop(color, $mdc-text-field-error);
}

&.mdc-text-field--with-trailing-icon {
&:not(.mdc-text-field--with-leading-icon) {
@include mdc-text-field-icon-color($mdc-text-field-error);
Expand All @@ -178,7 +182,7 @@
@include mdc-text-field-label-color($mdc-text-field-focused-label-color);

@include mdc-required-text-field-label-asterisk_ {
@include mdc-theme-prop(color, $mdc-text-field-error);
@include mdc-theme-prop(color, $mdc-text-field-focused-label-color);
}

+ .mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg) {
Expand Down

0 comments on commit ca502d4

Please sign in to comment.