Skip to content

Commit 070397b

Browse files
committed
redo
1 parent f7fa6da commit 070397b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/material/chips/_m3-chip.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@
4949
chip-selected-label-text-color: map.get($system, on-secondary-container),
5050
chip-selected-trailing-action-state-layer-color: map.get($system, on-secondary-container),
5151
chip-selected-trailing-icon-color: map.get($system, on-secondary-container),
52-
chip-trailing-action-focus-state-layer-opacity: map.get($system, focus-state-layer-opacity),
53-
chip-trailing-action-hover-state-layer-opacity: map.get($system, hover-state-layer-opacity),
52+
// The parent chips will show hover state as well so need stronger hover styling here
53+
chip-trailing-action-focus-state-layer-opacity:
54+
calc(map.get($system, focus-state-layer-opacity) * 2),
55+
chip-trailing-action-hover-state-layer-opacity:
56+
calc(map.get($system, hover-state-layer-opacity) * 2),
5457
chip-trailing-action-state-layer-color: map.get($system, on-surface-variant),
5558
chip-with-icon-disabled-icon-color: map.get($system, on-surface),
5659
chip-with-icon-icon-color: map.get($system, on-surface-variant),

src/material/chips/chip.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -530,14 +530,12 @@ $fallbacks: m3-chip.get-tokens();
530530
background-color: token-utils.slot(chip-trailing-action-state-layer-color, $fallbacks);
531531
}
532532

533-
// The parent chips will show hover state as well so need stronger hover styling here
534533
&:hover::after {
535-
opacity: calc(token-utils.slot(chip-trailing-action-hover-state-layer-opacity, $fallbacks) * 2);
534+
opacity: token-utils.slot(chip-trailing-action-hover-state-layer-opacity, $fallbacks);
536535
}
537536

538-
// The parent chips will show focus state as well so need stronger focus styling here
539537
&:focus::after {
540-
opacity: calc(token-utils.slot(chip-trailing-action-focus-state-layer-opacity, $fallbacks) * 2);
538+
opacity: token-utils.slot(chip-trailing-action-focus-state-layer-opacity, $fallbacks);
541539
}
542540
}
543541

0 commit comments

Comments
 (0)