Opened 11 years ago
Last modified 4 months ago
#31798 new defect (bug)
Editor: switch undo and redo in RTL
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Future Release | Priority: | low |
| Severity: | normal | Version: | |
| Component: | Editor | Keywords: | has-patch has-test-info |
| Focuses: | rtl | Cc: |
Description
The undo and redo icons in RTL should we switched.
LTR:
https://cloudup.com/cHOxlUfHbAp
Current RTL:
https://cloudup.com/cizBcGBMkCa
Proper RTL:
https://cloudup.com/cSCyiF_HxMA
Attachments (3)
Change History (21)
#1
follow-up:
↓ 3
@
11 years ago
- Component changed from Press This to Editor
- Priority changed from normal to low
- Summary changed from Press This: switch undo and redo in RTL to Editor: switch undo and redo in RTL
- Version trunk deleted
#2
@
11 years ago
Thanks for reminding me of these conversations @ocean90. Indeed, this affects the general editor too.
To recap my personal opinion on icons in rtl: they don't necessarily need to be flipped, unless they represent some kind of directionality. In this case, they do.
#3
in reply to:
↑ 1
@
11 years ago
Replying to ocean90:
Maybe we should extend our
swap-dashicons-left-right-arrowsrule with these icons: trunk/Gruntfile.js@31875#L196
Oh nice, I never saw that beore (that's what I get for sitting out of dev cycles).
Anyway, swap-dashicons-left-right-arrows expects the values to be surrounded by double quotes, and we have (in this file, and probably other) content values surrounded by single quotes.
Should we improve the function to catch both, or do we have a guideline on how to surround content values this way or another?
#4
@
11 years ago
31798-gruntfile.diff does this via swap-dashicons-left-right-arrows. As a side effect, single quotes will be replaced by double quotes in content properties, in the rtl css.
This ticket was mentioned in Slack in #core-editor by iseulde. View the logs.
11 years ago
#7
@
11 years ago
- Milestone changed from 4.2 to Future Release
I'm actually not sure if this will be more beneficial than annoying. Swapping buttons will definitely be annoying, the users will have to re-learn them. This sounds a bit like swapping right and left.
Also, is there a consensus: in all countries with RTL languages, which is considered to mean "forward", "right" or "left"? Perhaps some more input from people that are native RTL language speakers will be beneficial.
#8
@
11 years ago
Speaking of Arabs, and I think this applies to all RTL languages speaker, in books you have left for forwards and right for backwards.
Also the UI is flipped in RTL so if you consider the page starts by the sidebar and moves in the other direction, it'll be on the right, and forwards will be to the left.
#10
in reply to:
↑ 9
@
10 years ago
Replying to iseulde:
@yoavf, any feedback?
I still think we should switch - haven't tested your patch yet, will try to do that soon.
#11
@
9 years ago
- Keywords needs-testing added; reporter-feedback removed
- Milestone changed from Future Release to 4.8
This ticket was mentioned in Slack in #core by flixos90. View the logs.
8 years ago
This ticket was mentioned in Slack in #core-test by hellofromtonya. View the logs.
4 years ago
This ticket was mentioned in PR #9098 on WordPress/wordpress-develop by @SirLouen.
4 months ago
#15
This is a refresh for Refresh 31798.patch
More testing below
Trac ticket: https://core.trac.wordpress.org/ticket/31798
#16
@
4 months ago
- Keywords has-test-info added; needs-testing removed
Test Report
Description
✅ This report validates that the indicated patch works as expected.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/9098.diff
Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.29.0
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 137.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-One 2.5
- MU Plugins: None activated
- Plugins:
- Classic Editor 1.6.7
- Test Reports 1.2.0
- Press This 1.1.2
Testing Instructions
- This can be tested either with Classic Editor or with the Press This Editor, install any of these two
- Switch to an RTL language like العربية
- Now open the editor, whichever you have installed
- 🐞 The undo and redo buttons are reversed
Additional Notes
- Despite this is affecting unsupported components, this is something defined in Gruntfile which could affect any related component in the future. The solution by @ocean90 was adding the
f171andf172(undo and redo) to the Gruntfile plugin. But also, with the map alternative is way WETter not having to add conditionals for both directions.
- This is a nice little patch that could be great for RTL users, despite it is aiming for slightly old components.
Actual Results
- ✅ Issue resolved with patch.
Supplemental Artifacts
After patch:
This ticket was mentioned in Slack in #core-test by sirlouen. View the logs.
4 months ago
#18
@
4 months ago
Test Report
Description
This report validates whether the indicated patch works as expected.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/9098.diff
Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.27.5
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 135.0.0.0
- OS: macOS
- Theme: Twenty Twenty 2.9
- MU Plugins: None activated
- Plugins:
- Classic Editor 1.6.7
- Test Reports 1.2.0
Actual Results
- ✅ Issue resolved with patch when followed the testing instructions provided.





This is not specific to Press This, rather Editor in all.
Related chats on Slack:
Maybe we should extend our
swap-dashicons-left-right-arrowsrule with these icons: trunk/Gruntfile.js@31875#L196