Replies: 4 comments
-
Also noticing this in a React/Next project by shadcn himself for tailwind v4 https://app-tailwind-v4.vercel.app/ |
Beta Was this translation helpful? Give feedback.
-
You may want to remove |
Beta Was this translation helpful? Give feedback.
-
I was able to fix this by removing the following animation classes on
Or alternatively, you can override them wherever you use <AlertDialog.Root>
<AlertDialog.Content
class="data-[state=closed]:slide-out-to-left-0! data-[state=closed]:slide-out-to-top-0! data-[state=open]:slide-in-from-left-0! data-[state=open]:slide-in-from-top-0!"
>
<!-- ... -->
</AlertDialog.Content>
<!-- ... -->
</AlertDialog.Root> |
Beta Was this translation helpful? Give feedback.
-
Converting to discussion because we don't have official support for tailwind v4 added yet. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
When opening a dialog with installed Tailwind 4.0.0, the animation is broken and it opens not from the center.
CleanShot.2025-01-25.at.18.58.50.mp4
Reproduction
https://github.com/P5ina/shadcn-svelte-dialog-bug
Logs
System Info
Severity
annoyance
Beta Was this translation helpful? Give feedback.
All reactions