Make WordPress Core

Opened 2 months ago

Closed 2 months ago

Last modified 2 weeks ago

#62170 closed defect (bug) (reported-upstream)

Problem with displaying code block in RTL direction

Reported by: farhad0's profile farhad0 Owned by:
Milestone: Priority: normal
Severity: major Version:
Component: Editor Keywords:
Focuses: rtl Cc:

Description

Hi,

There is a problem with displaying code block in RTL sites on WP.org

Sample page: https://fa.wordpress.org/support/topic/%D9%85%D8%B4%DA%A9%D9%84-%D8%AA%D8%A7%D8%B1%DB%8C%D8%AE-%D9%85%DB%8C%D9%84%D8%A7%D8%AF%DB%8C/

The code block displays in RTL direction but it should display in LTR direction

I think we need to change the styles of code block to force to LTR direction in RTL sites too

Thank you

Change History (3)

#1 @sabernhardt
2 months ago

  • Component changed from Themes to Editor
  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

Thanks for the report!

I moved it to the Gutenberg repository to update the Code block styles for any site.
https://github.com/WordPress/gutenberg/issues/65890

Please join the discussion on the issue or its pull request. If you could test and/or improve the PR, that would be great.

#3 @sabernhardt
2 weeks ago

The plugin has new styles in Gutenberg 19.5. That change probably will not sync to Core until WordPress 6.8. However, the forums use the plugin, and they could update it sooner (#meta7511).

Note: See TracTickets for help on using tickets.