|
23 | 23 | @function get-color-tokens($theme) { |
24 | 24 | $theme-divider-color: inspection.get-theme-color($theme, system, outline); |
25 | 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 | 26 | @return ( |
37 | 27 | button-toggle-background-color: inspection.get-theme-color($theme, system, surface), |
38 | 28 | button-toggle-disabled-selected-state-background-color: |
|
43 | 33 | inspection.get-theme-color($theme, system, surface), |
44 | 34 | button-toggle-disabled-state-text-color: |
45 | 35 | inspection.get-theme-color($theme, foreground, disabled-button), |
46 | | - button-toggle-divider-color: $divider-color, |
| 36 | + button-toggle-divider-color: inspection.get-theme-color($theme, system, outline), |
47 | 37 | button-toggle-legacy-disabled-selected-state-background-color: |
48 | 38 | inspection.get-theme-color($theme, background, selected-disabled-button), |
49 | 39 | button-toggle-legacy-disabled-state-background-color: |
|
0 commit comments