-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Add RTL support #51376
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
Add RTL support #51376
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! That looks simple. I thought it is a bit more code needed.
Still I am a bit puzzled that the navbar does not go on the right side, would expect this for consistency. But would leave the vote to some native reader to feedback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to defer to users like @Dev-iL if the would prefer the nav bar to be moved to the right side too. |
Thanks for raising this! |
I've noticed the issue of the nav bar and I also saw some comments above. Thus, I think we should listen to native speakers' opinions to decide whether we should also mirror it. |
@pierrejeambrun I couldn't find or reproduce this issue on my local machine. Could you tell me more about the detail for this issue? I could diagnose and fix it. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my picture above, some inputs do not have the arrow down
icon that is mirrored properly.
Some of them do, but some don't and therefore the text is overlapping with the carret down.
Let me know if you also experience this.
Hi @eladkal Thanks for the review. I was missing a (more) clear statement if switching to RTL means that navbar also need to switch or if it is rather "better"/okay to keep it left. For me it is a bit tstrange to switch all to RTL but keeping the navbar left. But I am not an expert in this topic. ...or @shahar1 do you have an opinion? |
Hi @eladkal @Dev-iL, after my investigation, the select issue is fixed by manual add style for RTL on I also upgrade our chakra-ui package from Please take another look and let me know if there is anything need modifications, thanks! Current ui looks like Screen.Recording.2025-06-09.at.4.39.53.PM.mov |
In general, I think that the menu should be on the right - that's how it works in Wikipedia, for example. |
I agree |
No objections here, it is the known convention after all. |
Maybe we could open another issue for it to make sure if there are many people love this feature as well. I think it is not complex to implement but this change needs community's support~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There are more stuff we need to fix but this is a good start. Lets handle them with improvment PRs.
Related Issue
#51187
cc @bbovenzi @jscheffl @eladkal
Why
How
dir
usingi18n.dir()
LocaleProvider
align to official tutorial for chakra-uiScreen.Recording.2025-06-04.at.1.07.49.AM.mov
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in airflow-core/newsfragments.