-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fixed category title in RTL languages #16673
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
Fixed category title in RTL languages #16673
Conversation
mkevins
left a comment
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.
|
Hi @carl-duncan 👋 😃 There are some changes that have landed in
Can you try merging in the latest |
I will sort this out later today, thank you for the review! |
8230d81 to
0b754c2
Compare
|
Good day, I am sorry about the delays, here is the updates! I updated the padding for the end so that in RTL displays it will match exactly |
mkevins
left a comment
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.
Thank you for these changes @carl-duncan ! I've tested the latest changes, and this indeed improves the padding for RTL locales, while leaving the LTR intact. I've tested this with both the theme picker and the page picker, and things are working well. I've left one nitpick comment about.
WordPress/src/main/res/layout/modal_layout_picker_layouts_row.xml
Outdated
Show resolved
Hide resolved
3412528 to
a0f93d5
Compare
a0f93d5 to
37dd21e
Compare
mkevins
left a comment
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.
Thank you Carl, the padding is now fixed, and the code is looking good! Compared with trunk, the LTR locales are unaffected (i.e. no regressions) and the padding for RTL locales is improved:
| Screen | trunk |
This PR |
|---|---|---|
| Theme Picker | ![]() |
![]() |
| Page Picker | ![]() |
![]() |
I've added two small suggestions for improving this further, so that we can have correct alignment for RTL locales in addition to the improved padding. The results look like this:
| Screen | This PR | This PR with suggestions applied |
|---|---|---|
| Theme Picker | ![]() |
![]() |
| Page Picker | ![]() |
![]() |
Co-authored-by: Matthew Kevins <[email protected]>
Co-authored-by: Matthew Kevins <[email protected]>
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
mkevins
left a comment
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.
Thank you for updating Carl. I've updated the description of the PR to add the testing steps (already performed) for posterity. I also added some labels and set the milestone to the next release. I've created a companion branch in the main repository to trigger CI tests, and once green, this one should be good to go. Thanks for your efforts on this!
|
Thanks again for this PR @carl-duncan 🎉 For information, your fix has been included in the version |









Fixes #
Fixed the category titles (and subtitles) displayed in RTL languages for the theme picker and the page picker.
To test:
Set the app's language to an RTL language. (pseudoLocales can be used for ease in testing).
LTR
Make sure there are no regression for the theme picker and the page picker.
RTL
Make sure there are no regression for the theme picker and the page picker.
Regression Notes
Potential unintended areas of impact
Page and theme pickers
What I did to test those areas of impact (or what existing automated tests I relied on)
Manual testing
What automated tests I added (or what prevented me from doing so)
Out of scope for this task.
PR submission checklist:
RELEASE-NOTES.txtif necessary.