|
12 | 12 | // Tokens that can be configured through Angular Material's color theming API. |
13 | 13 | @function get-color-tokens($theme, $color-variant) { |
14 | 14 | $is-dark: inspection.get-theme-type($theme) == dark; |
15 | | - $active-state-layer-color: inspection.get-theme-color($theme, foreground, base, |
16 | | - if($is-dark, 0.08, 0.04)); |
17 | 15 | $system: m2-utils.get-system($theme); |
18 | 16 | $system: m3-utils.replace-colors-with-variant($system, primary, $color-variant); |
19 | 17 |
|
20 | 18 | @return ( |
21 | 19 | option-selected-state-label-text-color: map.get($system, primary), |
22 | 20 | option-label-text-color: inspection.get-theme-color($theme, system, on-surface), |
23 | | - option-hover-state-layer-color: $active-state-layer-color, |
24 | | - option-focus-state-layer-color: $active-state-layer-color, |
25 | | - option-selected-state-layer-color: $active-state-layer-color, |
| 21 | + option-hover-state-layer-color: m3-utils.color-with-opacity( |
| 22 | + map.get($system, on-surface), map.get($system, hover-state-layer-opacity)), |
| 23 | + option-focus-state-layer-color: m3-utils.color-with-opacity( |
| 24 | + map.get($system, on-surface), map.get($system, focus-state-layer-opacity)), |
| 25 | + option-selected-state-layer-color: m3-utils.color-with-opacity( |
| 26 | + map.get($system, on-surface), map.get($system, pressed-state-layer-opacity)), |
26 | 27 | ); |
27 | 28 | } |
28 | 29 |
|
|
0 commit comments