From 53b8b704043b6fbb5c91f11daa7c52b7c9aa67cb Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Mon, 11 Oct 2021 20:56:57 +0200 Subject: [PATCH] fix(material/icon): disable text selection Disables text selection inside `mat-icon` so that the text inside font icons can't be selected by accident. --- 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;