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
fix: Set toolbar direction based on toolbar language #7902
fix: Set toolbar direction based on toolbar language #7902
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.
Aside from the small comment, LGTM! I tested it on a <120 chrome and the rtl patch is working perfectly!
…cms into fix/toolbar-language-rtl
The patch is minimal, though. We might find places with weird layout. I'll try to add a few more lines later. |
Alright, I'll do some manual tests later! |
@sakhawy So, the polyfill should be complete ;-) |
Once, we have this merged, I'll chery-pick it into #7901 |
…cms into fix/toolbar-language-rtl
@sakhawy Can you give this a final check, so we can merge it. I would love to backport it to 3.11 and include it in 3.11.6 which I am about to release... |
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 tested the changes on Firefox 125 and Chrome 110. I also compared it against django-cms 4.1.1. Aside from the small changes, LGTM!
Well spotted, thank you! |
@sakhawy Fixed both resize cursor and missing polyfill patch. If you're good to go, let me know by approving the PR :-) |
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.
LGMT, 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.
Happy to approve with Moe's approval in place 👏
…7902) (#7914) * feat: Add RTL support to toolbar (#7871) * feat: Add RTL support to toolbar * fix: Add logical text-align value for toolbar dropdown * fix: Correctly calculate available width of toolbar * fix: Fix weird floating bug with toolbar more buttons * feat: Add RTL support to modal header and related components (#7863) * fix: structure board on the right for ltr * Fix: also use key-length of 200 for the actual cache-key of placeholders - missing "functionality" for changes of #7595 and #7657 * fix: Set toolbar direction based on toolbar language (#7902) * Fix: Merge remnant * Update make-release script --------- Co-authored-by: Moe <mohammadalsakhawy@gmail.com> Co-authored-by: Wolfgang Fehr <24782511+wfehr@users.noreply.github.com>
Description
@sakhawy
This PR sets the toolbar text direction based on the toolbar language and not based on the document language.
This needs a "polyfill" to work with Chrome before 120 which is added at least in a basic version.
Related resources
Checklist
develop-4