|
28 | 28 | $warn-color: inspection.get-theme-color($theme, warn); |
29 | 29 | $color-tokens: private-get-color-palette-color-tokens($theme, primary); |
30 | 30 | $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); |
41 | 34 |
|
42 | 35 | @return map.merge($color-tokens, ( |
43 | 36 | // MDC has a token for the enabled placeholder, but not for the disabled one. |
|
0 commit comments