Skip to content

Commit

Permalink
[Toggle]: Add focus shadow (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
fallaciousreasoning authored Aug 29, 2024
1 parent 9cc3a19 commit 14d248e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/toggle/toggle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
height: calc(var(--height) - 2 * var(--padding));
border-radius: var(--leo-radius-full);
padding: var(--padding);
transition: background-color var(--duration) ease-in-out;
transition: background-color var(--duration) ease-in-out, box-shadow var(--duration) ease-in-out;
flex-shrink: 0;
&:disabled {
Expand All @@ -170,6 +170,10 @@
}
}
&:focus-visible {
box-shadow: var(--leo-effect-focus-state-offset);
}
&:hover:not(:disabled) {
--hover-bg: var(--unchecked-color);
Expand Down

0 comments on commit 14d248e

Please sign in to comment.