Skip to content

Commit 4db95a9

Browse files
danmanaandrewseguin
authored andcommitted
fix(form-field): fix wrong underline color in error state (#11447)
* fix(form-field): fix wrong underline color in error state Fix wrong color of the form-field undeline when using color=accent and the field is in an invalid state and focused. Previously when a form-field using the accent color had an error it would show on focus the accent color instead of the warn color. All other visual elements of the form-field (borders, labels etc) use the warn color in this state. Closes #11436 * refactor
1 parent 7bc1e5b commit 4db95a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/form-field/_form-field-theme.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@
8484
}
8585
}
8686

87-
.mat-form-field-ripple {
87+
.mat-form-field-ripple,
88+
.mat-form-field-ripple.mat-accent {
8889
background-color: $underline-color-warn;
8990
}
9091
}

0 commit comments

Comments
 (0)