Replies: 16 comments 10 replies
-
See previous discussion here 👍🏻 |
Beta Was this translation helpful? Give feedback.
-
hey @adamwathan, the plugin you mentioned doesn't work for me. I am using Laravel Tailwind Preset. I am not sure whats wrong. We, the community, can provide support in fixing RTL bugs and issues but at least we need an official starting point in that direction from Tailwind team. Regards, |
Beta Was this translation helpful? Give feedback.
-
What doesn't work about it? Can you share an example project where you have tried to set it up so I can see what the issue is? |
Beta Was this translation helpful? Give feedback.
-
both I created new laravel project + Laravel Tailwind Preset + Tailwind Dir: I only used |
Beta Was this translation helpful? Give feedback.
-
Can you make the repo public so I can see? |
Beta Was this translation helpful? Give feedback.
-
It's public now. sorry for that :) |
Beta Was this translation helpful? Give feedback.
-
Seems to be working fine: I noticed the CSS file in your |
Beta Was this translation helpful? Give feedback.
-
Thank you very much @adamwathan. it is working now. do I have to run |
Beta Was this translation helpful? Give feedback.
-
You have to rebuild your CSS files any time you make any sort of change that would result in different CSS yeah. |
Beta Was this translation helpful? Give feedback.
-
In 99% of the cases the So it's really unreasonable to transform this:
to this:
moreover it's much harder to read and maintain. I have written another plugin with a different approach: tailwindcss-rtl just use start and end notations instead of left and right depends on your language direction. Here is Workcation transformed with a simple search and replace. |
Beta Was this translation helpful? Give feedback.
-
+1 to variants being a bad general solution to this problem. I am currently working on Tailwind v2 and I'm using a plugin which added classes as the following:
I very much like that because it will automaticly decide the direction without having to specify both RTL and LTR. Also, I'll be able to force left or right if I want by using the default Original Code:
New Code:
This way we have RTL and the original code will work as expected but without RTL functionality.
|
Beta Was this translation helpful? Give feedback.
-
We will always need to add "ltr:pl-4" to our class ? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Native logical properties support is coming tomorrow 🎁 |
Beta Was this translation helpful? Give feedback.
-
what if we need to use screen size tags with it like md:pr-4 and how to add rtl to this |
Beta Was this translation helpful? Give feedback.
-
I having the same issue then I found this in the docs |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there
600 millions of people in the world write and read from RTL.
It is disappointing that this must-have feature is not supported yet in Tailwind (it doesn't even respect the html
dir="rtl"
attribute).do you have any plan to support RTL anytime soon?
Beta Was this translation helpful? Give feedback.
All reactions