Question: Can margin-inline replace margin-right/left for better RTL/LTR handling in space-x utility? #14364
Closed
Mrahmani71
started this conversation in
Ideas
Replies: 2 comments
-
Hey! Yeah this is what we're doing in v4 — breaking change so saving it for then. Can try the alphas now though if you want: |
Beta Was this translation helpful? Give feedback.
0 replies
-
It is great. I will try it👍👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I was testing some code and noticed that the space-x-4 style wasn't being applied correctly in my example. In the image below, you can see the problem where the space between the two buttons isn't properly applied. This is because I used the direction: rtl; style for the div.
I changed this Tailwind CSS style:
to this:
In my opinion, this style now works correctly for both RTL and LTR. However, I'm not sure if it might cause other issues, and I wanted to ask for your opinion on this change.
Beta Was this translation helpful? Give feedback.
All reactions