Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 19e3d7f

Browse files
authored
fix(chips): Remove color change from selected filter chips (#3093)
1 parent 1c29bd5 commit 19e3d7f

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

packages/mdc-chips/chip/mdc-chip.scss

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
@include mdc-chip-corner-radius($mdc-chip-border-radius-default);
3131
@include mdc-chip-fill-color($mdc-chip-fill-color-default);
3232
@include mdc-chip-ink-color($mdc-chip-ink-color-default);
33-
@include mdc-chip-selected-ink-color(primary);
3433
@include mdc-chip-leading-icon-color($mdc-chip-icon-color);
3534
@include mdc-chip-trailing-icon-color($mdc-chip-icon-color);
3635
@include mdc-chip-leading-icon-size($mdc-chip-leading-icon-size);
@@ -61,10 +60,6 @@
6160
opacity: 0;
6261
}
6362

64-
.mdc-chip--selected {
65-
@include mdc-theme-prop(background-color, surface);
66-
}
67-
6863
.mdc-chip__text {
6964
white-space: nowrap;
7065
}
@@ -101,6 +96,18 @@
10196
stroke-dashoffset: 0;
10297
}
10398

99+
// Change color of selected choice chips
100+
101+
.mdc-chip-set--choice {
102+
.mdc-chip {
103+
@include mdc-chip-selected-ink-color(primary);
104+
}
105+
106+
.mdc-chip--selected {
107+
@include mdc-theme-prop(background-color, surface);
108+
}
109+
}
110+
104111
// Add leading checkmark to filter chips with no leading icon
105112

106113
.mdc-chip__checkmark-svg {

0 commit comments

Comments
 (0)