Skip to content

Commit

Permalink
fix(chips): Remove color change from selected filter chips (#3093)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonniezhou authored Jul 17, 2018
1 parent 1c29bd5 commit 19e3d7f
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions packages/mdc-chips/chip/mdc-chip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
@include mdc-chip-corner-radius($mdc-chip-border-radius-default);
@include mdc-chip-fill-color($mdc-chip-fill-color-default);
@include mdc-chip-ink-color($mdc-chip-ink-color-default);
@include mdc-chip-selected-ink-color(primary);
@include mdc-chip-leading-icon-color($mdc-chip-icon-color);
@include mdc-chip-trailing-icon-color($mdc-chip-icon-color);
@include mdc-chip-leading-icon-size($mdc-chip-leading-icon-size);
Expand Down Expand Up @@ -61,10 +60,6 @@
opacity: 0;
}

.mdc-chip--selected {
@include mdc-theme-prop(background-color, surface);
}

.mdc-chip__text {
white-space: nowrap;
}
Expand Down Expand Up @@ -101,6 +96,18 @@
stroke-dashoffset: 0;
}

// Change color of selected choice chips

.mdc-chip-set--choice {
.mdc-chip {
@include mdc-chip-selected-ink-color(primary);
}

.mdc-chip--selected {
@include mdc-theme-prop(background-color, surface);
}
}

// Add leading checkmark to filter chips with no leading icon

.mdc-chip__checkmark-svg {
Expand Down

0 comments on commit 19e3d7f

Please sign in to comment.