Skip to content

Commit

Permalink
Revert "fix(material/chips): remove button is too small (#29351)" (#2…
Browse files Browse the repository at this point in the history
…9451)

This reverts commit d6aed80.

(cherry picked from commit d283622)
  • Loading branch information
andrewseguin committed Jul 17, 2024
1 parent cf61af5 commit aee1be8
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/material/chips/chip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ $_avatar-trailing-padding: 8px;
}

&::after {
@include token-utils.create-token-slot(background-color, trailing-action-state-layer-color);
@include token-utils.create-token-slot(background, trailing-action-state-layer-color);
}

&:hover::after {
Expand All @@ -552,8 +552,7 @@ $_avatar-trailing-padding: 8px;

.mat-mdc-chip-selected .mat-mdc-chip-remove::after,
.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after {
@include token-utils.create-token-slot(background-color,
selected-trailing-action-state-layer-color);
@include token-utils.create-token-slot(background, selected-trailing-action-state-layer-color);
}
}

Expand Down Expand Up @@ -696,9 +695,7 @@ $_avatar-trailing-padding: 8px;

// Used as a state overlay.
&::after {
$_touch-target-size: 48px;
$_ripple-size: 24px;
$offset: 3px;
$offset: 2px;
content: '';
display: block;
opacity: 0;
Expand All @@ -708,11 +705,6 @@ $_avatar-trailing-padding: 8px;
left: 8px - $offset;
right: 8px - $offset;
border-radius: 50%;
box-sizing: border-box;
padding: calc(($_touch-target-size - $_ripple-size)/2);
margin: calc((($_touch-target-size - $_ripple-size)/2) * -1);
// stylelint-disable material/no-prefixes
background-clip: content-box;
}

.mat-icon {
Expand Down

0 comments on commit aee1be8

Please sign in to comment.