Skip to content

Commit 7cda36f

Browse files
author
Andrew Seguin
committed
fix(material/select): remove internal-only M2 styles
1 parent 7791972 commit 7cda36f

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/material/select/_m2-select.scss

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,9 @@ $prefix: (mat, select);
1919
// Tokens that can be configured through Angular Material's color theming API.
2020
@function get-color-tokens($theme, $palette-name: primary) {
2121
$is-dark: inspection.get-theme-type($theme) == dark;
22-
23-
// Ideally we would derive all values directly from the theme, but it causes a lot of regressions
24-
// internally. For now we fall back to the old hardcoded behavior only for internal apps.
25-
$on-surface: if($is-dark, #fff, #000);
26-
$text-color-base: if(m2-utils.$private-is-internal-build, $on-surface,
27-
inspection.get-theme-color($theme, foreground, text, 1));
28-
$disabled-text-color-base: if(m2-utils.$private-is-internal-build, $on-surface,
29-
inspection.get-theme-color($theme, foreground, disabled-text, 1));
30-
$icon-color-base: if(m2-utils.$private-is-internal-build, $on-surface,
31-
inspection.get-theme-color($theme, foreground, divider, 1));
22+
$text-color-base: inspection.get-theme-color($theme, foreground, text, 1);
23+
$disabled-text-color-base: inspection.get-theme-color($theme, foreground, disabled-text, 1);
24+
$icon-color-base: inspection.get-theme-color($theme, foreground, divider, 1);
3225

3326
@return (
3427
panel-background-color: inspection.get-theme-color($theme, background, card),

0 commit comments

Comments
 (0)