Skip to content

Commit

Permalink
fix: add dark mode support in toggle (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Oct 28, 2022
1 parent c272c4f commit 5603e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/UI/Toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const Toggle: FC<Props> = ({ on, setOn }) => {
setOn(!on);
}}
className={clsx(
on ? 'bg-brand-500' : 'bg-gray-200',
on ? 'bg-brand-500' : 'bg-gray-200 dark:bg-gray-700',
'inline-flex h-[22px] w-[42.5px] border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none'
)}
>
Expand Down

1 comment on commit 5603e9c

@vercel
Copy link

@vercel vercel bot commented on 5603e9c Oct 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.