Skip to content
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

flex + divide-x is incorrect on RTL #10179

Closed
Newbie012 opened this issue Dec 27, 2022 · 2 comments
Closed

flex + divide-x is incorrect on RTL #10179

Newbie012 opened this issue Dec 27, 2022 · 2 comments

Comments

@Newbie012
Copy link

What version of Tailwind CSS are you using?

3.2.4

What build tool (or framework if it abstracts the build tool) are you using?

"postcss": "8.4.20",
"next": "13.1.1",

What version of Node.js are you using?

v18.4.0

What browser are you using?

Chrome

What operating system are you using?

Windows

Reproduction URL

https://play.tailwindcss.com/uGu893pb62

Describe your issue

While using divide-x with flex, it doesn't play nicely on RTL.

Expected:

image

Actual:

image

@adamwathan
Copy link
Member

Hey! This is currently by design, you should use divide-x-reverse when the direction of the children is reversed (either because of RTL or using flex-row-reverse):

https://tailwindcss.com/docs/divide-width#reversing-children-order

We considered moving to logical properties for these at one point but reverted it because the name divide-x doesn't make sense for stuff in the inline axis, since that axis can be vertical in vertical writing modes and x implies horizontal:

#2644

This is something I'm definitely interested in exploring how to improve still, especially with #10166 now open, but going to close this as "not a bug" at least since it is currently the intended behavior.

@TheMikeyRoss
Copy link

@adamwathan How can I reverse a grid if I'm using grid instead of flex ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants