Opened 9 years ago
Closed 9 years ago
#38706 closed defect (bug) (fixed)
Twenty Seventeen: RTL improvements
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | Bundled Theme | Keywords: | has-patch has-screenshots needs-testing |
Focuses: | template | Cc: |
Description
I did some testing of Twenty Seventeen in a local RTL setup (Hebrew) and found a few minor issues:
The menu-scroll-down
down arrow is right aligned, but should be left aligned.
Also, in the customizer, the new edit icons are mis-aligned, sitting on top of instead of beside the elements they are attached to.
In both cases this is because an absolute positioned element is used with a fixed right or left margin. To correct the issue, we need to override the rtl class and swap the positioning left/right.
Attachments (2)
Change History (16)
This ticket was mentioned in Slack in #core by helen. View the logs.
9 years ago
#5
@
9 years ago
@adamsilverstein
Does the patch need to be updated for customize-preview-rtl.css as well?
#6
@
9 years ago
I'm looking into this a bit more. I think my assumption about why these styles weren't working may be wrong. reviewing the build process, i actually see the correct customizer reverse style being created, but its not being applied correctly and I'm not sure why yet. For the twenty seventeen fix, thinking we may need to add twenty seventeen paths to the rtlcss build process then this style should also get the auto-reversal.
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
9 years ago
#8
@
9 years ago
@lukecavanagh great question! so it turns out the customizer was not loading the rtlcss built customize-preview-rtl.css
file at all, my updated patch corrects that
- Add 'customize-preview' style to our $rtl_styles array, resulting in the correct rtl stylesheet being loaded into the customizer preview
- leaves the twenty seventeen specific fix in place, will look into including it into rtl build
#10
@
9 years ago
I think for the twenty seventeen fix it makes the most sense to leave the rtl.css in place as that is the approach for the rss support overall in the theme and serves a good example.
38706.2.diff should be good to go, would appreciate confirmation/testing
38706.diff
Screenshot after: