Skip to content

Commit

Permalink
allow Toggle to be tabbed and add focus styling (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
piyalbasu authored Dec 4, 2024
1 parent 1404309 commit dec8428
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion @stellar/design-system/src/components/Toggle/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@
}

&__input {
display: none;
height: 0;
width: 0;

&:focus-visible ~ .Toggle__track {
box-shadow: 0 0 0 pxToRem(2px) var(--sds-input-color-border-default-focus);
}

&:checked ~ .Toggle__track {
background-color: var(--sds-clr-lilac-09);
Expand Down

0 comments on commit dec8428

Please sign in to comment.