Skip to content

Commit a931de5

Browse files
authored
fix(material/icon): disable text selection (#23730)
Disables text selection inside `mat-icon` so that the text inside font icons can't be selected by accident.
1 parent f7b5497 commit a931de5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/material/icon/icon.scss

+3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
@use '../core/style/vendor-prefixes';
2+
13
// The width/height of the icon element.
24
$size: 24px !default;
35

46
.mat-icon {
7+
@include vendor-prefixes.user-select(none);
58
background-repeat: no-repeat;
69
display: inline-block;
710
fill: currentColor;

0 commit comments

Comments
 (0)