Carousel is broken with Tailwind 4
- [x] I have searched the Issues to see if this bug has already been reported
- [x] I have tested the latest version
Steps to reproduce
After upgrading from Tailwind 3 to Tailwind 4, the Carousel isn't rendering properly. Each slide is rendered on top of each other.
Here's a CodeSandbox that reproduces the issue:
https://codesandbox.io/p/devbox/y3l7vf
Current behavior
Hi, I'm facing the same issue right now, just moved from v3 to v4. Did you manage to resolve this issue yet?
Hey there, did u guys follow the release changelog migration guide? also make sure to check "Breaking Changes" section too.
See here [email protected].
The sandbox does not work because of #1559
Hi @SutuSebastian, I was trying to use the carousel on a pure vitawind project I just made today. everything on its latest version. Taking a step back, I'm not so sure where the issue is. Is it the carousel or the vitawind starter I'm using. Best I get back to it now.
Thanks for the heads up regarding the migration guide!
Using tools like vitawind is simply redundant today.
If u want to have a fresh nice configured template using flowbite-react simply run npx create-flowbite-react@latest and pick ur framework/bundler of choice
thank you, I'll keep that in mind
I have fixed the bug in my proyect by changing the theme. I only swapped the absolut class with the relative class. Something like this:
carousel: {
"item": {
"base": "relative",
},
}