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
This commit is contained in:
Dan Manastireanu
2018-06-07 07:38:23 +02:00
committed by Andrew Seguin
parent 103acc4ab5
commit 3681ddfbfa
+2 -1
View File
@@ -84,7 +84,8 @@
}
}
.mat-form-field-ripple {
.mat-form-field-ripple,
.mat-form-field-ripple.mat-accent {
background-color: $underline-color-warn;
}
}