Skip to content

Commit 9047985

Browse files
authored
fix(material/slide-toggle): Made label non user selectable (#22756)
1 parent 40a3e16 commit 9047985

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';
@@ -48,6 +49,7 @@ $bar-track-width: $bar-width - $thumb-size;
4849
// The label element is our root container for the slide-toggle / switch indicator and label text.
4950
// It has to be a label, to support accessibility for the visual hidden input.
5051
.mat-slide-toggle-label {
52+
@include vendor-prefixes.user-select(none);
5153
display: flex;
5254
flex: 1;
5355
flex-direction: row;

0 commit comments

Comments
 (0)