Skip to content

Commit

Permalink
fix(material/icon): updates to include .mat-icon variants
Browse files Browse the repository at this point in the history
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
  • Loading branch information
essjay05 committed Sep 16, 2024
1 parent 0f5a037 commit 9d4ca07
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/material/icon/icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ mat-icon {
fill: currentColor;
height: $size;
width: $size;
vertical-align: middle;

// In some cases the icon elements may extend beyond the container. Clip these cases
// in order to avoid weird overflows and click areas. See #11826.
Expand Down Expand Up @@ -68,6 +67,13 @@ mat-icon {
// Makes button icon overflow visible to fix b/250063405
.mat-mdc-icon-button .mat-icon,
.mdc-button .mat-icon,
.mat-mdc-fab-base .mat-icon {
.mat-mdc-fab-base .mat-icon,
.mat-toolbar .mat-icon,
.mat-mdc-tooltip-trigger .mat-icon,
.mat-mdc-tab .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 {
overflow: visible;
}

0 comments on commit 9d4ca07

Please sign in to comment.