From d8c84d60814adc094d48a65b6e853abab11a6239 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Mon, 25 Oct 2021 01:13:55 +0200 Subject: [PATCH] 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. (cherry picked from commit a931de54a786597b34259e461c2cf3ab6edc590a) --- src/material/icon/icon.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/material/icon/icon.scss b/src/material/icon/icon.scss index d74412f0bb56..9c9929ef9405 100644 --- a/src/material/icon/icon.scss +++ b/src/material/icon/icon.scss @@ -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;