|
19 | 19 | $mat-tokens: tokens-mat-switch.get-unthemable-tokens();
|
20 | 20 | $mdc-tokens: tokens-mdc-switch.get-unthemable-tokens();
|
21 | 21 | @include mdc-switch-theme.theme($mdc-tokens);
|
22 |
| - @include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-tokens); |
| 22 | + |
| 23 | + .mat-mdc-slide-toggle { |
| 24 | + @include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-tokens); |
| 25 | + } |
23 | 26 | }
|
24 | 27 | }
|
25 | 28 | }
|
|
40 | 43 | // Add values for MDC slide toggles tokens
|
41 | 44 | @include sass-utils.current-selector-or-root() {
|
42 | 45 | @include mdc-switch-theme.theme($mdc-tokens);
|
43 |
| - @include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-tokens); |
44 | 46 |
|
45 | 47 | // TODO(wagnermaciel): Use our token system to define this css variable.
|
46 | 48 | --mdc-switch-disabled-label-text-color: #{inspection.get-theme-color(
|
|
50 | 52 | )};
|
51 | 53 |
|
52 | 54 | .mat-mdc-slide-toggle {
|
| 55 | + @include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-tokens); |
| 56 | + |
53 | 57 | // Change the color palette related tokens to accent or warn if applicable
|
54 | 58 | &.mat-accent {
|
55 | 59 | @include mdc-switch-theme.theme(
|
|
79 | 83 | // Add values for MDC slide toggle tokens
|
80 | 84 | @include sass-utils.current-selector-or-root() {
|
81 | 85 | @include mdc-switch-theme.theme($mdc-tokens);
|
82 |
| - @include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-tokens); |
| 86 | + |
| 87 | + .mat-mdc-slide-toggle { |
| 88 | + @include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-tokens); |
| 89 | + } |
83 | 90 | }
|
84 | 91 | }
|
85 | 92 | }
|
|
94 | 101 | $mat-tokens: tokens-mat-switch.get-density-tokens($theme);
|
95 | 102 | $mdc-tokens: tokens-mdc-switch.get-density-tokens($theme);
|
96 | 103 | @include mdc-switch-theme.theme(tokens-mdc-switch.get-density-tokens($theme));
|
| 104 | + |
| 105 | + .mat-mdc-slide-toggle { |
| 106 | + @include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-tokens); |
| 107 | + } |
97 | 108 | }
|
98 | 109 | }
|
99 | 110 | }
|
|
0 commit comments