|
3 | 3 | @use '../core/tokens/m2/mat/switch' as tokens-mat-switch;
|
4 | 4 | @use '../core/tokens/m2/mdc/switch' as tokens-mdc-switch;
|
5 | 5 | @use '../core/tokens/token-utils';
|
| 6 | +@use '../core/style/vendor-prefixes'; |
6 | 7 |
|
7 | 8 | $_mdc-slots: (tokens-mdc-switch.$prefix, tokens-mdc-switch.get-token-slots());
|
8 | 9 | $_mat-slots: (tokens-mat-switch.$prefix, tokens-mat-switch.get-token-slots());
|
@@ -250,16 +251,16 @@ $_mat-slots: (tokens-mat-switch.$prefix, tokens-mat-switch.get-token-slots());
|
250 | 251 | @include token-utils.create-token-slot(height, with-icon-handle-size);
|
251 | 252 | }
|
252 | 253 |
|
253 |
| - .mat-mdc-slide-toggle:active .mdc-switch:not(.mdc-switch--disabled) & { |
| 254 | + .mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) & { |
254 | 255 | @include token-utils.create-token-slot(width, pressed-handle-size);
|
255 | 256 | @include token-utils.create-token-slot(height, pressed-handle-size);
|
256 | 257 | }
|
257 | 258 |
|
258 |
| - .mat-mdc-slide-toggle:active .mdc-switch--selected:not(.mdc-switch--disabled) & { |
| 259 | + .mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) & { |
259 | 260 | @include token-utils.create-token-slot(margin, selected-pressed-handle-horizontal-margin);
|
260 | 261 | }
|
261 | 262 |
|
262 |
| - .mat-mdc-slide-toggle:active .mdc-switch--unselected:not(.mdc-switch--disabled) & { |
| 263 | + .mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) & { |
263 | 264 | @include token-utils.create-token-slot(margin, unselected-pressed-handle-horizontal-margin);
|
264 | 265 | }
|
265 | 266 |
|
@@ -479,6 +480,7 @@ $_mat-slots: (tokens-mat-switch.$prefix, tokens-mat-switch.get-token-slots());
|
479 | 480 | }
|
480 | 481 |
|
481 | 482 | .mat-mdc-slide-toggle {
|
| 483 | + @include vendor-prefixes.user-select(none); |
482 | 484 | display: inline-block;
|
483 | 485 | -webkit-tap-highlight-color: transparent;
|
484 | 486 |
|
|
0 commit comments