|
29 | 29 | @function get-color-tokens($theme, $color-variant, $exclude: ()) { |
30 | 30 | $system: m2-utils.get-system($theme); |
31 | 31 | $system: m3-utils.replace-colors-with-variant($system, primary, $color-variant); |
32 | | - $is-dark: inspection.get-theme-type($theme) == dark; |
33 | | - $inactive-label-text-color: inspection.get-theme-color($theme, foreground, base, 0.6); |
34 | 32 |
|
35 | 33 | $tokens: ( |
36 | | - tab-disabled-ripple-color: inspection.get-theme-color($theme, foreground, disabled), |
| 34 | + tab-disabled-ripple-color: map.get($system, on-surface-variant), |
37 | 35 | tab-pagination-icon-color: inspection.get-theme-color($theme, system, on-surface), |
38 | | - |
39 | | - // Note: MDC has equivalents of these tokens, but they lead to much higher selector specificity. |
40 | | - tab-inactive-label-text-color: $inactive-label-text-color, |
| 36 | + tab-inactive-label-text-color: map.get($system, on-surface-variant), |
41 | 37 | tab-active-label-text-color: map.get($system, primary), |
42 | | - |
43 | | - // Tokens needed to implement the gmat styles. Externally they don't change. |
44 | 38 | tab-active-ripple-color: map.get($system, primary), |
45 | 39 | tab-inactive-ripple-color: map.get($system, primary), |
46 | | - tab-inactive-focus-label-text-color: $inactive-label-text-color, |
47 | | - tab-inactive-hover-label-text-color: $inactive-label-text-color, |
| 40 | + tab-inactive-focus-label-text-color: map.get($system, on-surface-variant), |
| 41 | + tab-inactive-hover-label-text-color: map.get($system, on-surface-variant), |
48 | 42 | tab-active-focus-label-text-color: map.get($system, primary), |
49 | 43 | tab-active-hover-label-text-color: map.get($system, primary), |
50 | 44 | tab-active-focus-indicator-color: map.get($system, primary), |
|
0 commit comments