From 2692e51e579ee34f3174d46e34df24e174fce6ea Mon Sep 17 00:00:00 2001 From: Joy Serquina Date: Mon, 7 Oct 2024 22:10:17 +0000 Subject: [PATCH] refactor(material/icon): removes important and inline styles Updates previous fix to remove the inline targets and the usage of forced usage of styles as it is on the app to remove any overriding styles. Fixes b/250063405 BREAKING CHANGE: removes use of forced styles Updates the previous fix which uses "important" and removes it as any overrides should be fixed by the app mat-icon is used in instead. --- src/material/icon/icon.scss | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/material/icon/icon.scss b/src/material/icon/icon.scss index b7355ab92adc..c7f904447204 100644 --- a/src/material/icon/icon.scss +++ b/src/material/icon/icon.scss @@ -74,11 +74,10 @@ mat-icon { .mat-mdc-form-field .mat-icon, .mat-grid-tile .mat-icon, .mat-mdc-list-item .mat-icon, -.mat-mdc-list-option .mat-icon, -.mat-icon:has(div[style*='letter-spacing:']):has(div[style*='word-spacing:']) { +.mat-mdc-list-option .mat-icon { overflow: visible; // Apply styles to avoid text spacing - letter-spacing: 0 !important; - word-spacing: 0 !important; - line-height: 1 !important; + letter-spacing: 0; + word-spacing: 0; + line-height: 1; }