diff --git a/src/material/select/_m2-select.scss b/src/material/select/_m2-select.scss index e25e44b77aa0..18f1b9e2e6eb 100644 --- a/src/material/select/_m2-select.scss +++ b/src/material/select/_m2-select.scss @@ -1,5 +1,4 @@ @use 'sass:map'; -@use '../core/tokens/m2-utils'; @use '../core/theming/inspection'; @use '../core/theming/theming'; @use '../core/style/elevation'; @@ -16,16 +15,9 @@ // 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, base)); + $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, base); @return ( select-panel-background-color: inspection.get-theme-color($theme, system, surface),