diff --git a/src/material/select/_m2-select.scss b/src/material/select/_m2-select.scss index 08cb7cbc5ef7..cdf9666ebc83 100644 --- a/src/material/select/_m2-select.scss +++ b/src/material/select/_m2-select.scss @@ -19,16 +19,9 @@ $prefix: (mat, select); // Tokens that can be configured through Angular Material's color theming API. @function get-color-tokens($theme, $palette-name: primary) { $is-dark: inspection.get-theme-type($theme) == dark; - - // Ideally we would derive all values directly from the theme, but it causes a lot of regressions - // internally. For now we fall back to the old hardcoded behavior only for internal apps. - $on-surface: if($is-dark, #fff, #000); - $text-color-base: if(m2-utils.$private-is-internal-build, $on-surface, - inspection.get-theme-color($theme, foreground, text, 1)); - $disabled-text-color-base: if(m2-utils.$private-is-internal-build, $on-surface, - inspection.get-theme-color($theme, foreground, disabled-text, 1)); - $icon-color-base: if(m2-utils.$private-is-internal-build, $on-surface, - inspection.get-theme-color($theme, foreground, divider, 1)); + $text-color-base: inspection.get-theme-color($theme, foreground, text, 1); + $disabled-text-color-base: inspection.get-theme-color($theme, foreground, disabled-text, 1); + $icon-color-base: inspection.get-theme-color($theme, foreground, divider, 1); @return ( panel-background-color: inspection.get-theme-color($theme, background, card),