Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#38706 closed defect (bug) (fixed)

Twenty Seventeen: RTL improvements

Reported by: adamsilverstein's profile adamsilverstein Owned by: helen's profile helen
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.

https://cl.ly/3P0m093k1d10/admin_____2016-11-08_00-01-12.jpg

Also, in the customizer, the new edit icons are mis-aligned, sitting on top of instead of beside the elements they are attached to.

https://cl.ly/2E0r0U1n2A0O/__admin_____2016-11-07_23-33-53.jpg_2016-11-08_00-02-20.jpg

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)

38706.diff (933 bytes) - added by adamsilverstein 9 years ago.
38706.2.diff (1.2 KB) - added by adamsilverstein 9 years ago.

Download all attachments as: .zip

Change History (16)

#1 @adamsilverstein
9 years ago

  • Keywords has-patch dev-feedback has-screenshots added
  • Version set to trunk

38706.diff

  • Adjust some styles for RTL: customizer edit buttons and twenty seventeen scroll down arrow

Screenshot after:

https://cl.ly/021L38153p3t/__admin_____2016-11-07_23-36-10.jpg_1414807_2016-11-08_00-39-27.jpg

#2 @davidakennedy
9 years ago

  • Milestone changed from Awaiting Review to 4.7

#3 @sirbrillig
9 years ago

The RTL fix for the shortcut icons looks great to me. Thanks!

This ticket was mentioned in Slack in #core by helen. View the logs.


9 years ago

#5 @lukecavanagh
9 years ago

@adamsilverstein

Does the patch need to be updated for customize-preview-rtl.css as well?

#6 @adamsilverstein
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 @adamsilverstein
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

In 38706.2.diff

  • 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

#9 @lukecavanagh
9 years ago

@adamsilverstein

Good catch.

#10 @adamsilverstein
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

Last edited 9 years ago by adamsilverstein (previous) (diff)

This ticket was mentioned in Slack in #core-customize by adamsilverstein. View the logs.


9 years ago

#12 @adamsilverstein
9 years ago

  • Keywords needs-testing added; dev-feedback removed

#13 @helen
9 years ago

In 39197:

Customize: Ensure RTL version of customize-preview.css is loaded.

props adamsilverstein.
see #27403, #38706.

#14 @helen
9 years ago

  • Owner set to helen
  • Resolution set to fixed
  • Status changed from new to closed

In 39198:

Twenty Seventeen: Better RTL positioning for scroll down arrow.

props adamsilverstein.
fixes #38706.

Note: See TracTickets for help on using tickets.