-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Post Editor: iframe editor canvas padding is overridden by zero in the classic theme #76863
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[Feature] ThemesQuestions or issues with incorporating or styling blocks in a theme.Questions or issues with incorporating or styling blocks in a theme.[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
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[Feature] ThemesQuestions or issues with incorporating or styling blocks in a theme.Questions or issues with incorporating or styling blocks in a theme.[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
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
✅ Done
Description
When a classic theme is active, the
bodyelement is expected to have 8px padding.In WP 6.9:
However, this padding is unintentionally overridden by zero in WP 7.0 and Gutenberg:
This causes the text to stick to the edge of the canvas, which can make it look slightly unappealing and affect text editing.
I've identified that this issue was caused by #73971. Specifically, the zero-padding here became apparent because global styles were internally enabled in the classic theme.
Step-by-step reproduction instructions