You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Global styles CSS-variables don't apply to the iframe in site-editor #28581
When in the site-editor using an FSE theme, I can see that the CSS-variables get generated properly but they are applied to the main :root element. The problem is that they don't get applied to the root element inside the iframe, and as a result themes appear broken/unstyled.
Step-by-step reproduction instructions
Install and activate the Q theme from its github repo: https://github.com/aristath/q - The theme.json file has already been updated to accommodate the latest structural changes.
Visit the site-editor.
Expected behaviour
CSS-variables should be applied to the iframe and not the root element.
Actual behaviour
CSS-variables get applied to the root element and the iframe does not inherit them.
Activity
aristath commentedon Feb 5, 2021
Thank you @nosolosw 🙌🙌🙌