Skip to content

Commit c2f58cf

Browse files
committed
fix(material/icon): updates to include .mat-icon variants
Updates classes to target .mat-icon usage in other Angular Material Components (ie. list-item, list-option, grid-tile, form-field, tab, toolbar, and tooltip). Fixes b/250063405
1 parent 45e70d5 commit c2f58cf

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/material/icon/icon.scss

+8-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ mat-icon {
2828
fill: currentColor;
2929
height: $size;
3030
width: $size;
31-
vertical-align: middle;
3231

3332
// In some cases the icon elements may extend beyond the container. Clip these cases
3433
// in order to avoid weird overflows and click areas. See #11826.
@@ -68,6 +67,13 @@ mat-icon {
6867
// Makes button icon overflow visible to fix b/250063405
6968
.mat-mdc-icon-button .mat-icon,
7069
.mdc-button .mat-icon,
71-
.mat-mdc-fab-base .mat-icon {
70+
.mat-mdc-fab-base .mat-icon,
71+
.mat-toolbar .mat-icon,
72+
.mat-mdc-tooltip-trigger .mat-icon,
73+
.mat-mdc-tab .mat-icon,
74+
.mat-mdc-form-field .mat-icon,
75+
.mat-grid-tile .mat-icon,
76+
.mat-mdc-list-item .mat-icon,
77+
.mat-mdc-list-option .mat-icon {
7278
overflow: visible;
7379
}

0 commit comments

Comments
 (0)