New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
space-x-* and space-y-* is not working with flex-row-reverse and flex-col-reverse #9411
Comments
Hey! Thank you for your question! That's expected behaviour, you have to use |
Oh I see now, thank you for pointing it out @RobinMalfait! I guess it would be more intuitive without needing to write |
In you case since you are using The space utilities work by setting a margin on all but the first item to create that gap. |
Good tip! But flex gap is not yet well supported (92% globally) and also it's not always I use flex when I need space between elements. I think the space utility should ideally identify that there is the reverse order class and place margins on the correct side. |
What version of Tailwind CSS are you using?
v3.1.8
What build tool (or framework if it abstracts the build tool) are you using?
play.tailwindcss.com
What version of Node.js are you using?
play.tailwindcss.com
What browser are you using?
Brave (Chromium)
What operating system are you using?
macOS
Reproduction URL
https://play.tailwindcss.com/iSSWGR1Ga3
Describe your issue
I just noticed that
space-x-*
andspace-y-*
doesn't work correctly withflex-row-reverse
andflex-col-reverse
. Instead of space in between children, the spacing is displayed on a side.The text was updated successfully, but these errors were encountered: