Open mutewinter opened 1 month ago
Due to disableTransitionOnChange from https://github.com/shadcn-ui/ui/blob/main/apps/www/app/layout.tsx#L93, no dark: animations will function.
disableTransitionOnChange
dark:
This means that the classes in ModeToggle aren't actually doing anything: https://github.com/shadcn-ui/ui/blob/main/apps/www/components/mode-toggle.tsx#L22-L23.
ModeToggle
Go to https://ui.shadcn.com/docs/dark-mode/next and change the theme. The icon will not animate.
No response
N/A
I also noticed about this and I fixed it. Will make a PR soon.
Describe the bug
Due to
disableTransitionOnChange
from https://github.com/shadcn-ui/ui/blob/main/apps/www/app/layout.tsx#L93, nodark:
animations will function.This means that the classes in
ModeToggle
aren't actually doing anything: https://github.com/shadcn-ui/ui/blob/main/apps/www/components/mode-toggle.tsx#L22-L23.Affected component/components
ModeToggle
How to reproduce
Go to https://ui.shadcn.com/docs/dark-mode/next and change the theme. The icon will not animate.
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting