gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Theme.json: dynamic references, avoid recursive references

Open MaggieCabrera opened this issue 3 years ago • 0 comments

Description

Pointed out in #42976, the editor crashes when there's a recursive reference in place.

Step-by-step reproduction instructions

In theme.json add:

"color": {
    "background": { "ref": "styles.color.text" },
    "text": {"ref": "styles.color.background" }
},

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

MaggieCabrera avatar Aug 11 '22 14:08 MaggieCabrera