-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
When Gutenberg is active, RTL styles are not loading correctly on the front. #41649
Comments
Is the bug reported in Trac 56325 related? When I had |
Thanks, @sabernhardt! Just wanted to point out that in my Trac report, I was able to replicate even without Gutenberg active. |
@jorgefilipecosta Hi, would you be able to take a look to see if the Trac ticket I reported is the same issue as this one? If so, is it possible to get this fix reviewed, as this bug seems to be is affecting all block themes? Thanks! |
There is a problem on all RTL sites using block themes and block CSS files This fixes loading all RTL CSS files and also add suffix to the styles object This fixes: https://wordpress.org/support/topic/rtl-problem-bug/ WordPress/gutenberg#41649 WordPress/gutenberg#41762 CC to locale managers: @naokomc @tobifjellner
The trac thicked seems to be the same issue. I reviewed and approved PR #41762, which should fix it. |
Description
Different RTL files and styles are loaded on the front of the website depending on if Gutenberg is active or not.
This breaks some RTL styles, for example for the query pagination and comment query pagination blocks.
The example page I am using to reproduce this is the front page of Twenty Twenty-Two, with enough posts to show the query pagination in the query loop.
WordPress trunk, without Gutenberg, loads the following rtl files:
Inline styles are replaced with their rtl versions. - For example to rotate the query pagination arrows.
With Gutenberg 13.4.0 active, the following rtl file is loaded, but it is the only one:
<link rel='stylesheet' id='wp-block-navigation-rtl-css' href='http://localhost:8889/wp-content/plugins/gutenberg/build/block-library/blocks/navigation/style-rtl.css?ver=1654842440' media='all' />
Inline styles are not replaced with their rtl versions, and the query pagination arrows are not rotated.
See #40684 (comment)
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
WordPress trunk
Gutenberg trunk or 13.4-0
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
The text was updated successfully, but these errors were encountered: