Skip to content

Commit cb50287

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

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/material/form-field/_m2-form-field.scss

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,9 @@
2828
$warn-color: inspection.get-theme-color($theme, warn);
2929
$color-tokens: private-get-color-palette-color-tokens($theme, primary);
3030
$on-surface: if($is-dark, #fff, #000);
31-
32-
// Ideally we would derive all values directly from the theme, but it causes a lot of regressions
33-
// internally. For now we fall back to the old hardcoded behavior only for internal apps.
34-
$on-surface: if($is-dark, #fff, #000);
35-
$text-color-base: if(m2-utils.$private-is-internal-build, $on-surface,
36-
inspection.get-theme-color($theme, foreground, text, 1));
37-
$disabled-text-color-base: if(m2-utils.$private-is-internal-build, $on-surface,
38-
inspection.get-theme-color($theme, foreground, disabled-text, 1));
39-
$divider-base: if(m2-utils.$private-is-internal-build, $on-surface,
40-
inspection.get-theme-color($theme, foreground, divider, 1));
31+
$text-color-base: inspection.get-theme-color($theme, system, on-surface);
32+
$disabled-text-color-base: inspection.get-theme-color($theme, foreground, disabled-text, 1);
33+
$divider-base: inspection.get-theme-color($theme, foreground, divider, 1);
4134

4235
@return map.merge($color-tokens, (
4336
// MDC has a token for the enabled placeholder, but not for the disabled one.

0 commit comments

Comments
 (0)