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
When you go to the Site Editor > Styles sidebar > Blocks > Dimension panel, spacing, and adjust settings like padding and margin, and then open the plugin sidebar and select "Save changes", code is added under theme.json settings, not only styles.
This can be reproduced with any block theme.
Open the Styles sidebar and the blocks panel. Select the paragraph block.
Add any color to the paragraph text, background and link. Save the style changes through the regular site editor save option, as well as the plugin sidebar "save changes" option.
Open theme.json: confirm that the colors are correctly added to styles > blocks > paragraph.
Next, change the typography options. Save, and view the changes to theme.json: Confirm that the styles are applied correctly.
Now change padding and margin. Save, and view theme.json.
Confirm that the spacing is correctly added under styles.
View settings.
Confirm that all the theme.json settings are now duplicated under settings > blocks > paragraph.
Here is the resulting theme.json of Twenty Twenty Two:
I followed the testing instructions but instead, deactivated CBT and exported using the native site editor Export, and the result is the same — settings are duplicated under the paragraph block. So I think this is a Gutenberg issue, tested on trunk.
I'll try looking into when this issue was introduced.
When you go to the Site Editor > Styles sidebar > Blocks > Dimension panel, spacing, and adjust settings like padding and margin, and then open the plugin sidebar and select "Save changes", code is added under theme.json settings, not only styles.
This can be reproduced with any block theme.
Confirm that the spacing is correctly added under styles.
View settings.
Confirm that all the theme.json settings are now duplicated under settings > blocks > paragraph.
Here is the resulting theme.json of Twenty Twenty Two:
The text was updated successfully, but these errors were encountered: