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

Commit ca502d4

Browse files
Stéphane Domenetabhiomkar
authored andcommitted
fix(text-field): Fixed asterisk color where it stays in error color even after input is resolved (#4576)
1 parent 71a1180 commit ca502d4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/mdc-textfield/_mixins.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@
159159
@include mdc-text-field-helper-text-validation-color($mdc-text-field-error);
160160
@include mdc-text-field-caret-color($mdc-text-field-error);
161161

162+
@include mdc-required-text-field-label-asterisk_ {
163+
@include mdc-theme-prop(color, $mdc-text-field-error);
164+
}
165+
162166
&.mdc-text-field--with-trailing-icon {
163167
&:not(.mdc-text-field--with-leading-icon) {
164168
@include mdc-text-field-icon-color($mdc-text-field-error);
@@ -178,7 +182,7 @@
178182
@include mdc-text-field-label-color($mdc-text-field-focused-label-color);
179183

180184
@include mdc-required-text-field-label-asterisk_ {
181-
@include mdc-theme-prop(color, $mdc-text-field-error);
185+
@include mdc-theme-prop(color, $mdc-text-field-focused-label-color);
182186
}
183187

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

0 commit comments

Comments
 (0)