Skip to content

Commit

Permalink
refactor(material/chips): replace px with _trailing-icon-size variable
Browse files Browse the repository at this point in the history
Updates previous Angular Components Chip component fix and makes it
adaptable by swapping the hard-coded 18px offset to equal the
variable for -icon-size.
  • Loading branch information
essjay05 committed Jul 9, 2024
1 parent a44ce28 commit 97aa7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material/chips/chip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ $_avatar-trailing-padding: 8px;

// Used as a state overlay.
&::after {
$offset: 18px; // size of the remove icon
$offset: $_trailing-icon-size; // size of the remove icon
content: '';
display: block;
opacity: 0;
Expand Down

0 comments on commit 97aa7b2

Please sign in to comment.