|
1 | 1 | @use 'sass:map'; |
2 | | -@use 'sass:meta'; |
3 | 2 | @use '../core/theming/theming'; |
4 | 3 | @use '../core/theming/inspection'; |
5 | 4 | @use '../core/style/sass-utils'; |
|
21 | 20 |
|
22 | 21 | // Tokens that can be configured through Angular Material's color theming API. |
23 | 22 | @function get-color-tokens($theme) { |
24 | | - $theme-divider-color: inspection.get-theme-color($theme, system, outline); |
25 | | - |
26 | | - // By default the theme usually has an rgba color for the dividers, which can |
27 | | - // stack up with the background of a button toggle. This can cause the border |
28 | | - // of a selected toggle to look different from an unselected one. We use a solid |
29 | | - // color to ensure that the border always stays the same. |
30 | | - $divider-color: if( |
31 | | - meta.type-of($theme-divider-color) == color, |
32 | | - theming.private-rgba-to-hex( |
33 | | - $theme-divider-color, inspection.get-theme-color($theme, system, surface)), |
34 | | - $theme-divider-color); |
35 | | - |
36 | 23 | @return ( |
37 | 24 | button-toggle-background-color: inspection.get-theme-color($theme, system, surface), |
38 | 25 | button-toggle-disabled-selected-state-background-color: |
|
43 | 30 | inspection.get-theme-color($theme, system, surface), |
44 | 31 | button-toggle-disabled-state-text-color: |
45 | 32 | inspection.get-theme-color($theme, foreground, disabled-button), |
46 | | - button-toggle-divider-color: $divider-color, |
| 33 | + button-toggle-divider-color: inspection.get-theme-color($theme, system, outline), |
47 | 34 | button-toggle-legacy-disabled-selected-state-background-color: |
48 | 35 | inspection.get-theme-color($theme, background, selected-disabled-button), |
49 | 36 | button-toggle-legacy-disabled-state-background-color: |
|
0 commit comments