@@ -100,8 +100,10 @@ $mat-form-field-select-horizontal-end-padding: $mat-form-field-select-arrow-widt
100
100
101
101
@mixin private-form-field-native-select-color ($config ) {
102
102
@include mdc-helpers .mat-using-mdc-theme ($config ) {
103
- $_arrow-color : rgba (mdc-theme-color .prop-value (on-surface ), 0.54 );
104
- $_disabled-arrow-color : rgba (mdc-theme-color .prop-value (on-surface ), 0.38 );
103
+ // These values are taken from the MDC select implementation:
104
+ // https://github.com/material-components/material-components-web/blob/master/packages/mdc-select/_select-theme.scss
105
+ $dropdown-icon-color : rgba (mdc-theme-color .prop-value (on-surface ), 0.54 );
106
+ $disabled-dropdown-icon-color : rgba (mdc-theme-color .prop-value (on-surface ), 0.38 );
105
107
106
108
select .mat-mdc-input-element {
107
109
// On dark themes we set the native `select` color to some shade of white,
@@ -122,7 +124,7 @@ $mat-form-field-select-horizontal-end-padding: $mat-form-field-select-arrow-widt
122
124
123
125
.mat-mdc-form-field-type-mat-native-select {
124
126
.mat-mdc-form-field-infix ::after {
125
- color : $_arrow -color ;
127
+ color : $dropdown-icon -color ;
126
128
}
127
129
128
130
& .mat-focused {
@@ -147,7 +149,7 @@ $mat-form-field-select-horizontal-end-padding: $mat-form-field-select-arrow-widt
147
149
148
150
& .mat-form-field-disabled {
149
151
.mat-mdc-form-field-infix ::after {
150
- color : $_disabled-arrow -color ;
152
+ color : $disabled-dropdown-icon -color ;
151
153
}
152
154
}
153
155
}
0 commit comments