-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Adding padding to the body in theme.json adds scrollbar to the style variation preview #43572
Copy link
Copy link
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[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
When theme.json adds padding to the body (spacing.padding), the padding is visible in the style variation preview in the global styles sidebar.
Step-by-step reproduction instructions
- Activate Twenty Twenty-Three
- In theme.json, add padding to the body (see example below)
- Open the Site Editor and the styles sidebar
Screenshots, screen recording, code snippet
100px top padding:
"spacing": {
"blockGap": "1.5rem",
"padding": {
"top": "100px",
"right": "var(--wp--preset--spacing--30)",
"bottom": "0px",
"left": "var(--wp--preset--spacing--30)"
}
},
Environment info
WordPress 6.0.1
Gutenberg trunk
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
Reactions are currently unavailable
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[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for issues without a type.

