-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed as not planned
Closed as not planned
Copy link
Labels
[Feature] Block Style VariationsIssues or PRs that are related to the style variations for blocksIssues or PRs that are related to the style variations for blocks[Package] Style Engine/packages/style-engine/packages/style-engine[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
Style block elements were working in WordPress 6.3 and it's not working anymore (WP 6.4 or activating the latest version of Gutenberg - 17.0.0) for plugin blocks. I could make it work for the core paragraph block though.
Step-by-step reproduction instructions
- In a WordPress environment, add the following plugin to the
wp-content/pluginsfolder: https://github.com/renatho/my-test-plugin - Activate the plugin.
- Activate a block theme that uses
theme.json. It could be the Twenty Twenty-Three. - Edit the
theme.jsonof the theme, and add the following customization understyles.blocks:"create-block/my-test-plugin": { "elements": { "link": { "typography": { "fontSize": "8px" } }, "heading": { "typography": { "fontSize": "8px" } } } }, "core/paragraph": { "elements": { "link": { "typography": { "fontSize": "8px" } } } },
If not using WP 6.4, install and activate the Gutenberg 17.0.0.UPDATE: Install and activate the Gutenberg plugin.- In the editor, create a page and add the "My Test Plugin" block.
- Also add a paragraph block and a link in the paragraph text (inside the paragraph block).
- Check that the styles work properly on the editor, but not on the frontend for the "My Test Plugin" block. And notice that it works for the core paragraph block.
- Check that it works properly on WordPress 6.3.
Screenshots, screen recording, code snippet
Editor with a paragraph with a link, and the "My Test Plugin" block with a blue background:
The same page on the frontend:
Environment info
- Gutenberg 17.0.0 or WordPress 6.4
- Chrome
- OSX
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
Metadata
Metadata
Assignees
Labels
[Feature] Block Style VariationsIssues or PRs that are related to the style variations for blocksIssues or PRs that are related to the style variations for blocks[Package] Style Engine/packages/style-engine/packages/style-engine[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended