Opened 12 years ago
Closed 12 years ago
#23897 closed defect (bug) (fixed)
Revisions UI: RTL support
Reported by: | ocean90 | Owned by: | ocean90 |
---|---|---|---|
Milestone: | 3.6 | Priority: | normal |
Severity: | normal | Version: | 3.6 |
Component: | Revisions | Keywords: | has-patch |
Focuses: | Cc: |
Description
Current state: http://cl.ly/NwT1
- Left and right needs to be swapped
- Todos: http://core.trac.wordpress.org/browser/trunk/wp-admin/revision.php#L82
Attachments (11)
Change History (26)
#1
@
12 years ago
- Keywords has-patch added; needs-patch removed
23897.diff is a first pass on fixing floats. I didn't touch the translatable strings yet. With this patch:
Also, I'd argue that it's not worth it/possible/realistic to change directions in the UI in terms of Previous/Next in the comparison view.
#2
follow-up:
↓ 5
@
12 years ago
23897.2.diff takes a stab at adding some context, also combined two strings into one.
EDIT: Disregard this patch and carry on from 23897.diff per comment:4
On a side note we should really fix the id selectors and class names in revision.php to bring them more in line with recommendations in the CSS Coding Standards. Selectors like removedandadded
, backbonerevisionsinteract
, etc aren't going to cut it.
#4
@
12 years ago
The string will be handled in #23901. So use this ticket only for the CSS parts.
On a side note we should really fix the id selectors and class names in revision.php
Definitely! But after the main things works. And in a separated ticket.
#5
in reply to:
↑ 2
@
12 years ago
Replying to DrewAPicture:
On a side note we should really fix the id selectors and class names in revision.php
Also mentioned in ticket:23497:139.
#6
follow-up:
↓ 7
@
12 years ago
23897.3.patch includes the CSS part. Still needs the slider swap, which needs to be done in JS.
#7
in reply to:
↑ 6
@
12 years ago
- Cc adamsilverstein@… added
Replying to ocean90:
23897.3.patch includes the CSS part. Still needs the slider swap, which needs to be done in JS.
do you mean reversing the order of the slider ticks? how can JS determine if using RTL?
#8
@
12 years ago
- includes previous css updates
- reverses direction of revisions in single handle mode. two handle mode was more complicated so i left it out for now, mulling, single handled mode was a simple solution
#9
@
12 years ago
- Keywords dev-feedback added
- completes RTL functionality in two handled mode
- adds additional inline documentation
two handle mode was a little trickier - in addition to reversing the handles, the values from the handle needed to be reversed; finally some of the logic when switching from single to two handled mode needed updating. in my testing i now see the same data results in RTL or non RTL mode.
#10
@
12 years ago
- completes RTL support
- ajax-actions updates so only required diffs generated including in RTL mode
First-pass.