@@ -41,7 +41,7 @@ $_standard-tokens: (
4141 transform : translateZ (0 );
4242
4343 @include token-utils .use-tokens ($_legacy-tokens ...) {
44- @include token-utils .create-token- slot (border-radius , shape);
44+ border-radius : token-utils .slot (shape );
4545 }
4646
4747 @include elevation .overridable-elevation (2 );
@@ -54,12 +54,12 @@ $_standard-tokens: (
5454.mat-button-toggle-standalone.mat-button-toggle-appearance-standard ,
5555.mat-button-toggle-group-appearance-standard {
5656 @include token-utils .use-tokens ($_standard-tokens ...) {
57- @include token-utils .create-token- slot (border-radius , shape);
58- border : solid 1px token-utils .get-token-variable (divider-color );
57+ border-radius : token-utils .slot (shape );
58+ border : solid 1px token-utils .slot (divider-color );
5959
6060 .mat-pseudo-checkbox {
6161 --mat-minimal-pseudo-checkbox-selected-checkmark-color : #{
62- token-utils .get-token-variable (selected-state-text-color )} ;
62+ token-utils .slot (selected-state-text-color )} ;
6363 }
6464 }
6565
@@ -87,18 +87,18 @@ $_standard-tokens: (
8787 position : relative ;
8888
8989 @include token-utils .use-tokens ($_legacy-tokens ...) {
90- @include token-utils .create-token- slot (color , text- color);
91- @include token-utils .create-token- slot (font-family , label- text- font);
92- @include token-utils .create-token- slot (font-size , label- text- size);
93- @include token-utils .create-token- slot (line-height , label- text- line- height);
94- @include token-utils .create-token- slot (font-weight , label- text- weight);
95- @include token-utils .create-token- slot (letter-spacing , label- text- tracking);
90+ color : token-utils .slot (text-color );
91+ font-family : token-utils .slot (label-text-font );
92+ font-size : token-utils .slot (label-text-size );
93+ line-height : token-utils .slot (label-text-line-height );
94+ font-weight : token-utils .slot (label-text-weight );
95+ letter-spacing : token-utils .slot (label-text-tracking );
9696
9797 --mat-minimal-pseudo-checkbox-selected-checkmark-color : #{
98- token-utils .get-token-variable (selected-state-text-color )} ;
98+ token-utils .slot (selected-state-text-color )} ;
9999
100100 & .cdk-keyboard-focused .mat-button-toggle-focus-overlay {
101- @include token-utils .create-token- slot (opacity , focus- state- layer- opacity);
101+ opacity : token-utils .slot (focus-state-layer-opacity );
102102 }
103103 }
104104
@@ -156,23 +156,22 @@ $_standard-tokens: (
156156
157157.mat-button-toggle-checked {
158158 @include token-utils .use-tokens ($_legacy-tokens ...) {
159- @include token-utils .create-token- slot (color , selected- state- text- color);
160- @include token-utils .create-token- slot (background-color , selected- state- background- color);
159+ color : token-utils .slot (selected-state-text-color );
160+ background-color : token-utils .slot (selected-state-background-color );
161161 }
162162}
163163
164164.mat-button-toggle-disabled {
165165 pointer-events : none ;
166166
167167 @include token-utils .use-tokens ($_legacy-tokens ...) {
168- @include token-utils .create-token- slot (color , disabled- state- text- color);
169- @include token-utils .create-token- slot (background-color , disabled- state- background- color);
168+ color : token-utils .slot (disabled-state-text-color );
169+ background-color : token-utils .slot (disabled-state-background-color );
170170 --mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color : #{
171- token-utils .get-token-variable (disabled-state-text-color )} ;
171+ token-utils .slot (disabled-state-text-color )} ;
172172
173173 & .mat-button-toggle-checked {
174- @include token-utils .create-token-slot (background-color ,
175- disabled- selected- state- background- color);
174+ background-color : token-utils .slot (disabled-selected-state-background-color );
176175 }
177176 }
178177}
@@ -183,14 +182,14 @@ $_standard-tokens: (
183182
184183.mat-button-toggle-appearance-standard {
185184 @include token-utils .use-tokens ($_standard-tokens ...) {
186- $divider-color : token-utils .get-token-variable (divider-color );
187- @include token-utils .create-token- slot (color , text- color);
188- @include token-utils .create-token- slot (background-color , background-color );
189- @include token-utils .create-token- slot (font-family , label- text- font);
190- @include token-utils .create-token- slot (font-size , label- text- size);
191- @include token-utils .create-token- slot (line-height , label- text- line- height);
192- @include token-utils .create-token- slot (font-weight , label- text- weight);
193- @include token-utils .create-token- slot (letter-spacing , label- text- tracking);
185+ $divider-color : token-utils .slot (divider-color );
186+ color : token-utils .slot (text-color );
187+ background-color : token-utils .slot (background-color );
188+ font-family : token-utils .slot (label-text-font );
189+ font-size : token-utils .slot (label-text-size );
190+ line-height : token-utils .slot (label-text-line-height );
191+ font-weight : token-utils .slot (label-text-weight );
192+ letter-spacing : token-utils .slot (label-text-tracking );
194193
195194 .mat-button-toggle-group-appearance-standard & + & {
196195 border-left : solid 1px $divider-color ;
@@ -208,40 +207,39 @@ $_standard-tokens: (
208207 }
209208
210209 & .mat-button-toggle-checked {
211- @include token-utils .create-token- slot (color , selected- state- text- color);
212- @include token-utils .create-token- slot (background-color , selected- state- background- color);
210+ color : token-utils .slot (selected-state-text-color );
211+ background-color : token-utils .slot (selected-state-background-color );
213212 }
214213
215214 & .mat-button-toggle-disabled {
216- @include token-utils .create-token- slot (color , disabled- state- text- color);
217- @include token-utils .create-token- slot (background-color , disabled- state- background- color);
215+ color : token-utils .slot (disabled-state-text-color );
216+ background-color : token-utils .slot (disabled-state-background-color );
218217
219218 .mat-pseudo-checkbox {
220219 --mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color : #{
221- token-utils .get-token-variable (disabled-selected-state-text-color )} ;
220+ token-utils .slot (disabled-selected-state-text-color )} ;
222221 }
223222
224223 & .mat-button-toggle-checked {
225- @include token-utils .create-token-slot (color , disabled- selected- state- text- color);
226- @include token-utils .create-token-slot (background-color ,
227- disabled- selected- state- background- color);
224+ color : token-utils .slot (disabled-selected-state-text-color );
225+ background-color : token-utils .slot (disabled-selected-state-background-color );
228226 }
229227 }
230228
231229 .mat-button-toggle-focus-overlay {
232- @include token-utils .create-token- slot (background-color , state- layer- color);
230+ background-color : token-utils .slot (state-layer-color );
233231 }
234232
235233 & :hover .mat-button-toggle-focus-overlay {
236- @include token-utils .create-token- slot (opacity , hover- state- layer- opacity);
234+ opacity : token-utils .slot (hover-state-layer-opacity );
237235 }
238236
239237 // Similar to components like the checkbox, slide-toggle and radio, we cannot show the focus
240238 // overlay for `.cdk-program-focused` because mouse clicks on the <label> element would be
241239 // always treated as programmatic focus.
242240 // TODO(paul): support `program` as well. See https://github.com/angular/components/issues/9889
243241 & .cdk-keyboard-focused .mat-button-toggle-focus-overlay {
244- @include token-utils .create-token- slot (opacity , focus- state- layer- opacity);
242+ opacity : token-utils .slot (focus-state-layer-opacity );
245243 }
246244 }
247245
@@ -262,7 +260,7 @@ $_standard-tokens: (
262260 padding : 0 $legacy-padding ;
263261
264262 @include token-utils .use-tokens ($_legacy-tokens ...) {
265- @include token-utils .create-token- slot (line-height , height );
263+ line-height : token-utils .slot (height );
266264 }
267265
268266 // Prevents IE from shifting the content on click.
@@ -272,7 +270,7 @@ $_standard-tokens: (
272270 padding : 0 $standard-padding ;
273271
274272 @include token-utils .use-tokens ($_standard-tokens ...) {
275- @include token-utils .create-token- slot (line-height , height );
273+ line-height : token-utils .slot (height );
276274 }
277275 }
278276}
@@ -291,7 +289,7 @@ $_standard-tokens: (
291289 opacity : 0 ;
292290
293291 @include token-utils .use-tokens ($_legacy-tokens ...) {
294- @include token-utils .create-token- slot (background-color , state- layer- color);
292+ background-color : token-utils .slot (state-layer-color );
295293 }
296294}
297295
@@ -383,30 +381,30 @@ $_standard-tokens: (
383381// radius of the button-toggle-group or standalone button-toggle.
384382@include token-utils .use-tokens ($_standard-tokens ...) {
385383 .mat-button-toggle-standalone.mat-button-toggle-appearance-standard {
386- @include token-utils . create-token-slot ( -- mat-focus-indicator-border-radius, shape);
384+ -- mat-focus-indicator-border-radius: token-utils . slot ( shape );
387385 }
388386
389387 .mat-button-toggle-group-appearance-standard :not (.mat-button-toggle-vertical ) .mat-button-toggle {
390388 & :last-of-type .mat-button-toggle-button ::before {
391- @include token-utils . create-token-slot ( border-top-right-radius , shape);
392- @include token-utils . create-token-slot ( border-bottom-right-radius , shape);
389+ border-top-right-radius : token-utils . slot ( shape );
390+ border-bottom-right-radius : token-utils . slot ( shape );
393391 }
394392
395393 & :first-of-type .mat-button-toggle-button ::before {
396- @include token-utils . create-token-slot ( border-top-left-radius , shape);
397- @include token-utils . create-token-slot ( border-bottom-left-radius , shape);
394+ border-top-left-radius : token-utils . slot ( shape );
395+ border-bottom-left-radius : token-utils . slot ( shape );
398396 }
399397 }
400398
401399 .mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle {
402400 & :last-of-type .mat-button-toggle-button ::before {
403- @include token-utils . create-token-slot ( border-bottom-right-radius , shape);
404- @include token-utils . create-token-slot ( border-bottom-left-radius , shape);
401+ border-bottom-right-radius : token-utils . slot ( shape );
402+ border-bottom-left-radius : token-utils . slot ( shape );
405403 }
406404
407405 & :first-of-type .mat-button-toggle-button ::before {
408- @include token-utils . create-token-slot ( border-top-right-radius , shape);
409- @include token-utils . create-token-slot ( border-top-left-radius , shape);
406+ border-top-right-radius : token-utils . slot ( shape );
407+ border-top-left-radius : token-utils . slot ( shape );
410408 }
411409 }
412410}
0 commit comments