Skip to content

Commit

Permalink
fix(material/chips): use concrete value for remove icon size (#28751)
Browse files Browse the repository at this point in the history
Currently the remove icon is a bit brittle, because the size is set to `inherit` which only works if there's a `button` around it. These changes set the specific width instead.

Fixes #28467.

(cherry picked from commit b9d4048)
  • Loading branch information
crisbeto committed Mar 21, 2024
1 parent 38a12a9 commit aee721e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/material/chips/chip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@
}

.mat-icon {
width: inherit;
height: inherit;
font-size: inherit;
width: mdc-chip-theme.$trailing-action-size;
height: mdc-chip-theme.$trailing-action-size;
font-size: mdc-chip-theme.$trailing-action-size;
box-sizing: content-box;
}
}
Expand Down

0 comments on commit aee721e

Please sign in to comment.