Skip to content

Commit

Permalink
fix: remove hover state when switch is disabled and toggled (#2151)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelAlev authored Jan 9, 2025
1 parent dda2dd8 commit f2188a0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/stupid-beers-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@frontify/fondue-components": patch
---

fix: remove hover state when switch is disabled and toggled
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
background-color: var(--box-neutral-color);
border: 1px solid var(--line-color-x-strong);

&:hover {
&:enabled:hover {
background-color: var(--box-neutral-color-hover);
}

Expand All @@ -37,12 +37,12 @@
&[data-state='checked'] {
background-color: var(--text-color-weak);

&:hover {
background: var(--box-neutral-strong-color-hover);
&:enabled:hover {
background-color: var(--box-neutral-strong-color-hover);
}
}

&[disabled] {
&:disabled {
border-color: var(--line-color);
background-color: var(--box-neutral-color);

Expand All @@ -51,6 +51,7 @@
}
}
}

.thumb {
@include transition-transform;

Expand Down

0 comments on commit f2188a0

Please sign in to comment.