Skip to content

Commit

Permalink
add :active state to any interactive chip
Browse files Browse the repository at this point in the history
  • Loading branch information
atabel committed Dec 19, 2024
1 parent 27ee630 commit 8dabbd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chip.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const interactiveChipOverlay = style([
backgroundColor: 'transparent',
transition: 'background-color 0.1s ease-in-out',
selectors: {
[`${button}:active &`]: {
[`${interactive}:active &`]: {
backgroundColor: vars.colors.backgroundContainerPressed,
},
},
Expand All @@ -101,7 +101,7 @@ export const interactiveChipOverlay = style([
[`${interactive}:hover &`]: {
backgroundColor: vars.colors.backgroundContainerHover,
},
[`${button}:active &`]: {
[`${interactive}:active &`]: {
backgroundColor: vars.colors.backgroundContainerPressed,
},
},
Expand Down

0 comments on commit 8dabbd4

Please sign in to comment.