Skip to content

Commit

Permalink
fix checkbox, radio, toggle focus color
Browse files Browse the repository at this point in the history
  • Loading branch information
saadeghi committed May 25, 2021
1 parent 940895e commit 7ea3c73
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/styled/checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
&:focus-visible,&:checked:focus-visible,&:checked:hover:focus-visible {
& ~ .checkbox-mark{
box-shadow: 0 0 0 2px hsl(var(--b1, 0 0% 100%)), 0 0 0 4px hsl(var(--bc, 0 0% 100%));
box-shadow: 0 0 0 2px hsl(var(--b1, 0 0% 100%)), 0 0 0 4px hsl(var(--bc, 215 28% 17%));
}
}
&:checked{
Expand Down
2 changes: 1 addition & 1 deletion src/components/styled/radio.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
&:focus-visible,&:checked:focus-visible,&:checked:hover:focus-visible {
& ~ .radio-mark{
box-shadow: 0 0 0 2px hsl(var(--b1, 0 0% 100%)), 0 0 0 4px hsl(var(--bc, 0 0% 100%));
box-shadow: 0 0 0 2px hsl(var(--b1, 0 0% 100%)), 0 0 0 4px hsl(var(--bc, 215 28% 17%));
}
}
&:checked{
Expand Down
2 changes: 1 addition & 1 deletion src/components/styled/toggle.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
&:focus-visible,&:checked:focus-visible,&:checked:hover:focus-visible {
& ~ .toggle-mark{
box-shadow: 0 0 0 2px hsl(var(--b1, 0 0% 100%)), 0 0 0 4px hsl(var(--bc, 0 0% 100%));
box-shadow: 0 0 0 2px hsl(var(--b1, 0 0% 100%)), 0 0 0 4px hsl(var(--bc, 215 28% 17%));
}
}
&:checked{
Expand Down

0 comments on commit 7ea3c73

Please sign in to comment.