Skip to content

Commit

Permalink
fix(pie-chip): DSW-000 hover and active styles are applied for disabl…
Browse files Browse the repository at this point in the history
…ed state (#1348)
  • Loading branch information
raoufswe authored Mar 26, 2024
1 parent 8ccb401 commit 782cd23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/twenty-pianos-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@justeattakeaway/pie-chip": minor
---

[Fixed] - active and hover styles are applied with the component is disabled
6 changes: 3 additions & 3 deletions packages/components/pie-chip/src/chip.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@use '@justeattakeaway/pie-css/scss' as p;

@mixin chip-interactive-states($bg-color, $mode: 'default') {
&:hover:not(:disabled) {
&:hover:not([disabled]) {
@if $mode == 'inverse' {
--hover-modifier: var(--dt-color-hover-02);
} @else {
Expand All @@ -16,8 +16,8 @@
}
}

&:active:not(:disabled),
&[isLoading]:not(:disabled) {
&:active:not([disabled]),
&[isLoading]:not([disabled]) {
@if $mode == 'inverse' {
--active-modifier: var(--dt-color-active-02);
} @else {
Expand Down

0 comments on commit 782cd23

Please sign in to comment.