Skip to content

Commit a94c0c2

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

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
@@ -16,16 +16,9 @@
1616
// Tokens that can be configured through Angular Material's color theming API.
1717
@function get-color-tokens($theme, $palette-name: primary) {
1818
$is-dark: inspection.get-theme-type($theme) == dark;
19-
20-
// Ideally we would derive all values directly from the theme, but it causes a lot of regressions
21-
// internally. For now we fall back to the old hardcoded behavior only for internal apps.
22-
$on-surface: if($is-dark, #fff, #000);
23-
$text-color-base: if(m2-utils.$private-is-internal-build, $on-surface,
24-
inspection.get-theme-color($theme, foreground, text, 1));
25-
$disabled-text-color-base: if(m2-utils.$private-is-internal-build, $on-surface,
26-
inspection.get-theme-color($theme, foreground, disabled-text, 1));
27-
$icon-color-base: if(m2-utils.$private-is-internal-build, $on-surface,
28-
inspection.get-theme-color($theme, foreground, divider, 1));
19+
$text-color-base: inspection.get-theme-color($theme, foreground, text, 1);
20+
$disabled-text-color-base: inspection.get-theme-color($theme, foreground, disabled-text, 1);
21+
$icon-color-base: inspection.get-theme-color($theme, foreground, divider, 1);
2922

3023
@return (
3124
select-panel-background-color: inspection.get-theme-color($theme, system, surface),

0 commit comments

Comments
 (0)