Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code block: fix direction for RTL languages #65890

Closed
2 tasks done
sabernhardt opened this issue Oct 5, 2024 · 0 comments · Fixed by #65891
Closed
2 tasks done

Code block: fix direction for RTL languages #65890

sabernhardt opened this issue Oct 5, 2024 · 0 comments · Fixed by #65891
Assignees
Labels
[Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@sabernhardt
Copy link
Contributor

Description

Issue reported by @farhadsakhaei (farhad0) in Trac 62170

Contents of the Code block should display in LTR direction, but RTL sites do not ensure that. This can be seen in a support topic from the WordPress.org forums.

Step-by-step reproduction instructions

  1. Set your site language to a right-to-left language (and set your profile language to match the site).
  2. Go to the post editor.
  3. Add a Code block and insert some code.
  4. Save changes.
  5. View the direction and alignment both in the editor and on the front.

Screenshots, screen recording, code snippet

From the support topic:

Code block in RTL support topic

Using the same code snippet in Twenty Twenty-Four, with WordPress trunk and Gutenberg 19.3.0:

Code block with Twenty Twenty-Four

Environment info

  • WordPress 6.7-trunk, with and without Gutenberg 19.3.0
  • Twenty Twenty-Four
  • Firefox 131.0 with Windows 10

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes
@sabernhardt sabernhardt added the [Type] Bug An existing feature does not function as intended label Oct 5, 2024
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant