Skip to content

Commit 27b52cd

Browse files
crisbetojosephperrott
authored andcommitted
fix(form-field): proper arrow color for native select (angular#14490)
Fixes the arrow color for a focused native `select` that is projected inside a `mat-form-field`.
1 parent 2dfd1e2 commit 27b52cd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
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)