-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
If I add a margin property to the theme.json at the top level styles the style generated is overwritten by a style added by the gutenberg plugin.
I also tried with the 2022 theme and gutenberg active.
Step-by-step reproduction instructions
Gutenberg plugin is activated.
Theme 2022 activated
Add this to theme.json
{
"styles": {
"spacing": {
"margin": "0 5rem",
"padding": "0"
},
}
}See the source of the page.
In my test I see this in the source:
body { // This is added by the theme.json
margin: 0 5rem;
padding: 0;
--wp--style--block-gap: 1.5rem;
}
body { margin: 0; } // This is added by the gutenberg pluginScreenshots, screen recording, code snippet
No response
Environment info
WP latest
Gutenberg Latest fro repo
Theme 2022
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.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended