Skip to content

Commit ff52be4

Browse files
committed
fixup! fix(material-experimental/mdc-select): correct some differences between
1 parent 1da6a49 commit ff52be4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/material-experimental/mdc-form-field/_form-field-native-select.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@ $mat-form-field-select-horizontal-end-padding: $mat-form-field-select-arrow-widt
100100

101101
@mixin private-form-field-native-select-color($config) {
102102
@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);
105107

106108
select.mat-mdc-input-element {
107109
// 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
122124

123125
.mat-mdc-form-field-type-mat-native-select {
124126
.mat-mdc-form-field-infix::after {
125-
color: $_arrow-color;
127+
color: $dropdown-icon-color;
126128
}
127129

128130
&.mat-focused {
@@ -147,7 +149,7 @@ $mat-form-field-select-horizontal-end-padding: $mat-form-field-select-arrow-widt
147149

148150
&.mat-form-field-disabled {
149151
.mat-mdc-form-field-infix::after {
150-
color: $_disabled-arrow-color;
152+
color: $disabled-dropdown-icon-color;
151153
}
152154
}
153155
}

0 commit comments

Comments
 (0)