Skip to content

Custom Block, theme.json definitions not loaded with latest RC Gutenberg Plugin #43679

Closed
@SGr33n

Description

@SGr33n

Description

Hi,
I'm just trying the latest Gutenberg RC and I can see that something is not working anymore.
The issue is that I created a custom excerpt block, called theme/single-post-excerpt and I added some css to the theme.json:

"theme/single-post-excerpt": { "typography": { "lineHeight": "var(--wp--custom--typography--line-height--small)", "fontSize": "var(--wp--preset--font-size--large)", "fontWeight": "500" } }

That definitions works good on the latest WP 6.0.1 but if I install the latest Gutenberg RC they are ignored.

Step-by-step reproduction instructions

Create a custom block.
Add css definitions for that block on the theme.json
Check if they are applied.

Screenshots, screen recording, code snippet

No response

Environment info

No response

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

Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions