Skip to content

Commit d0db71f

Browse files
committed
fix(material/chips): strengthen edit/remove icons focus/hover styling
1 parent 5406372 commit d0db71f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
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),

0 commit comments

Comments
 (0)