Skip to content

Commit

Permalink
Merge pull request #66 from getpingback/fix/sr-only
Browse files Browse the repository at this point in the history
fix: color sr-only
  • Loading branch information
roger067 authored Feb 21, 2025
2 parents 2459ff5 + f4af890 commit 6d9e238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/switch/switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function Switch({ checked, disabled, highlight, onChange }: SwitchProps) {

return (
<label className="inline-flex items-center cursor-pointer">
<input type="checkbox" className="sr-only peer" checked={checked} disabled={disabled} onChange={handleChange} />
<input type="checkbox" className="sr-only fixed peer" checked={checked} disabled={disabled} onChange={handleChange} />
<div
className={cn(
'relative w-9 h-5 bg-switch-bg hover:bg-switch-bg-hover transition-all shadow-switch rounded-full peer',
Expand Down

0 comments on commit 6d9e238

Please sign in to comment.