Skip to content

Commit

Permalink
refactor(material/icon): moves styles to bottom of scss file
Browse files Browse the repository at this point in the history
Updates previous fix to move added styles to bottom of scss
file for overriding.

Fixes b/250063405
  • Loading branch information
essjay05 committed Sep 24, 2024
1 parent 5d91880 commit a1ef7a4
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/material/icon/icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,6 @@ mat-icon {
transform: scale(-1, 1);
}

// 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 {
overflow: visible;
line-height: 1 !important;
}

.mat-form-field:not(.mat-form-field-appearance-legacy) {
.mat-form-field-prefix,
.mat-form-field-suffix {
Expand All @@ -72,3 +64,10 @@ 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 {
overflow: visible;
}

0 comments on commit a1ef7a4

Please sign in to comment.