Skip to content

Commit

Permalink
fix(material/icon): disable text selection (#23730)
Browse files Browse the repository at this point in the history
Disables text selection inside `mat-icon` so that the text inside font icons can't be selected by accident.

(cherry picked from commit a931de5)
  • Loading branch information
crisbeto authored and wagnermaciel committed Oct 24, 2021
1 parent 6161ec6 commit d8c84d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/material/icon/icon.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
@use '../core/style/vendor-prefixes';

// The width/height of the icon element.
$size: 24px !default;

.mat-icon {
@include vendor-prefixes.user-select(none);
background-repeat: no-repeat;
display: inline-block;
fill: currentColor;
Expand Down

0 comments on commit d8c84d6

Please sign in to comment.