Skip to content

Commit 3824a05

Browse files
crisbetojelbourn
authored andcommittedDec 20, 2018
fix(form-field): proper arrow color for native select (#14490)
Fixes the arrow color for a focused native `select` that is projected inside a `mat-form-field`.
1 parent 3f9a125 commit 3824a05

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
 

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

+14
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,20 @@
7070
}
7171
}
7272

73+
.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) {
74+
.mat-form-field-infix::after {
75+
color: $underline-focused-color;
76+
}
77+
78+
&.mat-accent .mat-form-field-infix::after {
79+
color: $underline-color-accent;
80+
}
81+
82+
&.mat-warn .mat-form-field-infix::after {
83+
color: $underline-color-warn;
84+
}
85+
}
86+
7387
// Styling for the error state of the form field. Note that while the same can be
7488
// achieved with the ng-* classes, we use this approach in order to ensure that the same
7589
// logic is used to style the error state and to show the error messages.

0 commit comments

Comments
 (0)
Please sign in to comment.