-
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
6.7: Writing mode / text orientation is not applied to the Site title block on the front #65910
Comments
Thanks for flagging this.
I don't think we should no. We need to track down the missing PR and make sure it's included in 6.7. I see references to I was away for the 6.6 cycle so perhaps @ellatrix might know (also cc @MaggieCabrera @mikachan). |
@getdave I just confirmed this issue happens with the Site Tagline block as well. Perhaps it's due to the fact that both are dynamic blocks? |
It looks like the style engine doesn't support The following code exists in Gutenberg: gutenberg/packages/style-engine/class-wp-style-engine.php Lines 300 to 305 in 4c4556c
However, this code doesn't exist in WP 6.7 Beta1: If you add the Gutenberg-only code to the core as well, it works correctly on the frontend. Maybe a PHP backport to core was missed during one of the major releases. |
Ah perhaps. cc @kevin940726 @andrewserong |
My understanding is that any changes to the style engine need to be manually backported to the core. However, the following PR doesn't seem to include any changes to the style engine: |
That's my understanding, too. Looks like WordPress/wordpress-develop#5210 was intended to backport #50822, however missed the changes to I'm happy to put up a core PR to add in the missing lines to the style engine, if no-one beats me to it! |
Note: In WordPress 6.6,
The Paragraph and Heading blocks have inline styles embedded in HTML, so they displayed correctly on the frontend even if the style engine did not support On the other hand, the Footnotes and Post Navigation Link blocks are dynamic blocks, so the style engine must support them to render them correctly on the frontend. Perhaps this issue was overlooked because so few people use |
Thanks for looking that up, Aki!
Yes, that sounds most likely to me, it can be really easy to miss testing these things in core, especially when we're so regularly working on the features in Gutenberg. I've opened up a core PR to resolve this over in WordPress/wordpress-develop#7534, and here's the trac ticket for it, too: https://core.trac.wordpress.org/ticket/62189 |
The core PR (WordPress/wordpress-develop#7534) has been committed, so the fix will be in WP 6.7 Beta 3. Thanks for the troubleshooting and reviews, everyone! |
Thank you for wrangling this folks 👏 |
Description
In WordPress 6.7-beta1-59184, the inline CSS for the typography option for vertical text is not applied on the front, only in the editors.
-The theme (Twenty Twenty-Five) has
"writingMode": true,
in theme.json > settings > typography.If I activate Gutenberg trunk, the option works correctly.
Since Twenty Twenty-Five relies on this feature to work for one of the alternative headers, can we rest assured that this will work in 6.7 without Gutenberg?
Step-by-step reproduction instructions
First, make sure the theme has support for
writingMode
.Next, insert a site title block.
In the block settings sidebar, open the Typography panel, activate "Orientation" and select vertical. Save.
View the block on the front.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: