Skip to content

Commit dcaee6f

Browse files
tsndrmmalerba
authored andcommitted
fix(material/slide-toggle): Made label non user selectable (#22756)
(cherry picked from commit 9047985)
1 parent daf8ff2 commit dcaee6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/material/slide-toggle/slide-toggle.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@use '../core/style/vendor-prefixes';
12
@use '../core/style/variables';
23
@use '../core/ripple/ripple';
34
@use '../core/style/list-common';
@@ -47,6 +48,7 @@ $bar-track-width: $bar-width - $thumb-size;
4748
// The label element is our root container for the slide-toggle / switch indicator and label text.
4849
// It has to be a label, to support accessibility for the visual hidden input.
4950
.mat-slide-toggle-label {
51+
@include vendor-prefixes.user-select(none);
5052
display: flex;
5153
flex: 1;
5254
flex-direction: row;

0 commit comments

Comments
 (0)