|
11 | 11 |
|
12 | 12 | // Tokens that can be configured through Angular Material's color theming API. |
13 | 13 | @function get-color-tokens($theme, $color-variant) { |
14 | | - $is-dark: inspection.get-theme-type($theme) == dark; |
15 | | - $disabled-color: if($is-dark, #686868, #b0b0b0); |
16 | 14 | $system: m2-utils.get-system($theme); |
17 | 15 | $system: m3-utils.replace-colors-with-variant($system, secondary, $color-variant); |
18 | 16 |
|
|
21 | 19 | pseudo-checkbox-full-selected-checkmark-color: map.get($system, background), |
22 | 20 | pseudo-checkbox-full-unselected-icon-color: map.get($system, on-surface-variant), |
23 | 21 | pseudo-checkbox-full-disabled-selected-checkmark-color: map.get($system, background), |
24 | | - pseudo-checkbox-full-disabled-unselected-icon-color: $disabled-color, |
25 | | - pseudo-checkbox-full-disabled-selected-icon-color: $disabled-color, |
| 22 | + pseudo-checkbox-full-disabled-unselected-icon-color: |
| 23 | + m3-utils.color-with-opacity(map.get($system, on-surface), 38%), |
| 24 | + pseudo-checkbox-full-disabled-selected-icon-color: |
| 25 | + m3-utils.color-with-opacity(map.get($system, on-surface), 38%), |
26 | 26 | pseudo-checkbox-minimal-selected-checkmark-color: map.get($system, secondary), |
27 | | - pseudo-checkbox-minimal-disabled-selected-checkmark-color: if($is-dark, #686868, #b0b0b0), |
| 27 | + pseudo-checkbox-minimal-disabled-selected-checkmark-color: |
| 28 | + m3-utils.color-with-opacity(map.get($system, on-surface), 38%), |
28 | 29 | ); |
29 | 30 | } |
30 | 31 |
|
|
0 commit comments