-
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
Dynamic references in theme.json
are not resolved in the site editor
#42890
Comments
theme.json
are not resolved in the site editor
A mechanism like this one should aim to expose the design links to the users. They need to understand where the value comes from so if they decide to "break" it it'll be a conscious decision. I ellaborated about this more at #39432 (comment) Though a first step is just to render the proper value and make the site editor look like the front-end. |
cc @scruffian |
A similar problem with the rendering of colors in the site editor occurs when you add root padding support in the settings.
No error is generated, but no change is made during editing. |
Oh hey, @oandregal 👋 I see that @scruffian has also created an issue for this bug - #42884. So let's close one of these. |
Description
We've introduced a new mechanism to refer to a different style dynamically at #41696 which allows us to do things such as:
In the example, the result would be that the text and background colors are the same (yellow).
While this works in the front-end it doesn't in the site editor:
Step-by-step reproduction instructions
Environment info
I can reproduce this is
trunk
.The text was updated successfully, but these errors were encountered: