Skip to content

Commit d703746

Browse files
committed
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.
1 parent 83a357a commit d703746

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/material/icon/icon.scss

+4-5
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,10 @@ mat-icon {
7474
.mat-mdc-form-field .mat-icon,
7575
.mat-grid-tile .mat-icon,
7676
.mat-mdc-list-item .mat-icon,
77-
.mat-mdc-list-option .mat-icon,
78-
.mat-icon:has(div[style*='letter-spacing:']):has(div[style*='word-spacing:']) {
77+
.mat-mdc-list-option .mat-icon {
7978
overflow: visible;
8079
// Apply styles to avoid text spacing
81-
letter-spacing: 0 !important;
82-
word-spacing: 0 !important;
83-
line-height: 1 !important;
80+
letter-spacing: 0;
81+
word-spacing: 0;
82+
line-height: 1;
8483
}

0 commit comments

Comments
 (0)