Skip to content

Theme JSON: Using a ref in the theme json breaks the Site Editor #42884

@scruffian

Description

@scruffian

Description

If theme.json uses a ref value for a property, the Site Editor doesn't understand this property and throws an error:

Step-by-step reproduction instructions

  1. Use a theme that uses refs for a theme.json property (e.g. Rainfall)
  2. Try to edit that property (for Rainfall it's links)

Screenshot 2022-08-02 at 09 46 16

3. The editor throws an error:

Screenshot 2022-08-02 at 09 45 43

Probably connected, we see this in the inspector:
Screenshot 2022-08-02 at 09 52 26

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

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions