From ca502d4fdd24a7f5813de80e08488795b1fc060b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Domenet?= <49250187+sdomenet@users.noreply.github.com> Date: Fri, 12 Apr 2019 17:48:46 +0200 Subject: [PATCH] fix(text-field): Fixed asterisk color where it stays in error color even after input is resolved (#4576) --- packages/mdc-textfield/_mixins.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/mdc-textfield/_mixins.scss b/packages/mdc-textfield/_mixins.scss index 73ea7b98228..9badcbc6eeb 100644 --- a/packages/mdc-textfield/_mixins.scss +++ b/packages/mdc-textfield/_mixins.scss @@ -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); @@ -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) {