-
Notifications
You must be signed in to change notification settings - Fork 319
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
[Feature]: Support RTL in shadcn components #357
Comments
@lord007tn Thanks for bringing it up
|
The CSS Logical Properties support table seems fine https://caniuse.com/css-logical-props Vite browserlist config |
Think that logical properties is better, thanks for the PR) |
@sadeghbarati i will make a pr soon to change direction properties to logical properties as it seems to support i18n with multi direction website |
Another note, that |
any updates on this? |
Created a poll here please share it for others |
Coming back to this issue after a few months, could we extend the |
Describe the feature
It seems that components use left and right values from tailwindcss
i would recommend using start and end so it supports RTL and LTR directions in projects
so instead of
pr-1
,ml-2
...we use
pe-1
,ms-2
And so on
also in components that have Chevron icons
we should add
rtl:rotate-180
class so we make sure when we change direction arrow rotateTasks:
start-, end-
/ps-, pe-
/ms-, me-
/ ... ) instead of (left-, right-
/pl-, pr-
/ml-, mr-
/ ... )Additional information
The text was updated successfully, but these errors were encountered: