|
12 | 12 | @use '../core/theming/theming'; |
13 | 13 | @use '../core/theming/inspection'; |
14 | 14 | @use '../core/typography/typography'; |
15 | | -@use '../core/tokens/m2/mdc/button-filled' as tokens-mdc-button-filled; |
16 | | -@use '../core/tokens/m2/mdc/button-protected' as tokens-mdc-button-protected; |
| 15 | +@use '../core/tokens/m2/mdc/filled-button' as tokens-mdc-filled-button; |
| 16 | +@use '../core/tokens/m2/mdc/protected-button' as tokens-mdc-protected-button; |
17 | 17 |
|
18 | 18 | @function _on-color($theme, $palette) { |
19 | 19 | $is-dark: inspection.get-theme-type($theme) == dark; |
|
131 | 131 | $on-error: _on-color($theme, $error); |
132 | 132 |
|
133 | 133 | .mat-mdc-unelevated-button { |
134 | | - $default-color-tokens: tokens-mdc-button-filled.get-color-tokens($theme, $surface, $on-surface); |
135 | | - $primary-color-tokens: tokens-mdc-button-filled.get-color-tokens($theme, $primary, $on-primary); |
136 | | - $accent-color-tokens: tokens-mdc-button-filled.get-color-tokens($theme, $accent, $on-accent); |
137 | | - $warn-color-tokens: tokens-mdc-button-filled.get-color-tokens($theme, $error, $on-error); |
| 134 | + $default-color-tokens: tokens-mdc-filled-button.get-color-tokens($theme, $surface, $on-surface); |
| 135 | + $primary-color-tokens: tokens-mdc-filled-button.get-color-tokens($theme, $primary, $on-primary); |
| 136 | + $accent-color-tokens: tokens-mdc-filled-button.get-color-tokens($theme, $accent, $on-accent); |
| 137 | + $warn-color-tokens: tokens-mdc-filled-button.get-color-tokens($theme, $error, $on-error); |
138 | 138 |
|
139 | 139 | &.mat-unthemed { |
140 | 140 | @include mdc-button-filled-theme.theme($default-color-tokens); |
|
154 | 154 | } |
155 | 155 |
|
156 | 156 | .mat-mdc-raised-button { |
157 | | - $default-color-tokens: tokens-mdc-button-protected.get-color-tokens( |
| 157 | + $default-color-tokens: tokens-mdc-protected-button.get-color-tokens( |
158 | 158 | $theme, |
159 | 159 | $surface, |
160 | 160 | $on-surface |
161 | 161 | ); |
162 | | - $primary-color-tokens: tokens-mdc-button-protected.get-color-tokens( |
| 162 | + $primary-color-tokens: tokens-mdc-protected-button.get-color-tokens( |
163 | 163 | $theme, |
164 | 164 | $primary, |
165 | 165 | $on-primary |
166 | 166 | ); |
167 | | - $accent-color-tokens: tokens-mdc-button-protected.get-color-tokens($theme, $accent, $on-accent); |
168 | | - $warn-color-tokens: tokens-mdc-button-protected.get-color-tokens($theme, $error, $on-error); |
| 167 | + $accent-color-tokens: tokens-mdc-protected-button.get-color-tokens($theme, $accent, $on-accent); |
| 168 | + $warn-color-tokens: tokens-mdc-protected-button.get-color-tokens($theme, $error, $on-error); |
169 | 169 |
|
170 | 170 | &.mat-unthemed { |
171 | 171 | @include mdc-button-protected-theme.theme($default-color-tokens); |
|
235 | 235 | $density-scale: theming.clamp-density(inspection.get-theme-density($theme), -3); |
236 | 236 |
|
237 | 237 | .mat-mdc-raised-button { |
238 | | - $density-tokens: tokens-mdc-button-protected.get-density-tokens($theme); |
| 238 | + $density-tokens: tokens-mdc-protected-button.get-density-tokens($theme); |
239 | 239 | @include mdc-button-protected-theme.theme($density-tokens); |
240 | 240 | @include button-theme-private.touch-target-density($density-scale); |
241 | 241 | } |
242 | 242 |
|
243 | 243 | .mat-mdc-unelevated-button { |
244 | | - $density-tokens: tokens-mdc-button-filled.get-density-tokens($theme); |
| 244 | + $density-tokens: tokens-mdc-filled-button.get-density-tokens($theme); |
245 | 245 | @include mdc-button-filled-theme.theme($density-tokens); |
246 | 246 | @include button-theme-private.touch-target-density($density-scale); |
247 | 247 | } |
|
0 commit comments