Skip to content

Commit

Permalink
Merge pull request #216 from Amogh-Nivaskar/'fix/add-cursor-pointer-t…
Browse files Browse the repository at this point in the history
…o-theme-toggle-dropdown-2

fix: added cursor as pointer for theme toggle dropdown menu items
  • Loading branch information
hemantwasthere authored Oct 23, 2023
2 parents 497ada8 + 9f3a6b8 commit 9eb2853
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions components/ThemeToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,24 @@ export function ThemeToggle() {
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="z-[1000]">
<DropdownMenuItem onClick={() => setTheme('light')}>
<DropdownMenuItem
className="cursor-pointer"
onClick={() => setTheme('light')}
>
<span>Light</span>
{theme === 'light' && <CheckIcon className="ml-auto mr-2 h-4 w-4" />}
</DropdownMenuItem>
<DropdownMenuItem onClick={() => setTheme('dark')}>
<DropdownMenuItem
className="cursor-pointer"
onClick={() => setTheme('dark')}
>
<span>Dark</span>
{theme === 'dark' && <CheckIcon className="ml-auto mr-2 h-4 w-4" />}
</DropdownMenuItem>
<DropdownMenuItem onClick={() => setTheme('system')}>
<DropdownMenuItem
className="cursor-pointer"
onClick={() => setTheme('system')}
>
<span>System</span>
{theme === 'system' && <CheckIcon className="ml-auto mr-2 h-4 w-4" />}
</DropdownMenuItem>
Expand Down

0 comments on commit 9eb2853

Please sign in to comment.