Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions components/utils/mode-toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,12 @@ export function ModeToggle() {
aria-label={label}
onClick={handleToggle}
>
<Sun className="h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" />
<Moon className="absolute h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" />
{/* Sun Icon: Visible by default (light mode), hidden in dark mode */}
<Sun className="h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:rotate-90" />

{/* Moon Icon: Hidden by default (light mode), visible in dark mode */}
<Moon className="absolute h-[1.2rem] w-[1.2rem] scale-0 -rotate-90 transition-all dark:scale-100 dark:rotate-0" />

<span className="sr-only">{label}</span>
</Button>
);
Expand Down
Loading