-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
CSS StylingRelated to editor and front end styles, CSS-specific issues.Related to editor and front end styles, CSS-specific issues.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
In testing the Twenty Twenty-Three theme, I noticed some issues with root padding in the Editor.
First, there is no root padding applied to the Editor itself. Secondly, root padding is applied incorrectly via the .has-global-padding class. On the Frontend, everything appears to be working correctly. See the video for complete information.
I believe that simply adding .has-global-padding to the .is-root-container div if root padding is applied in theme.json will solve this issue. See the video attached for more info.
Step-by-step reproduction instructions
- In Twenty Twenty-Three, or another theme that uses root padding, add a new page
- Add a paragraph of text to the page.
- Next add a Group block, and inside, add a Paragraph block.
- Ensure the "Inner blocks use content width" setting is applied to the Group block
- Notice that there is left/right padding applied in the Group block
- Preview the page on mobile using the Editor view setting
- See that the first paragraph goes to the edge of the page
- The paragraph in the Group block has the "correct" padding, but it's not applied correctly.
- View on the Frontend and everything appears as it should.
Screenshots, screen recording, code snippet
root-padding-editor-compressed.mp4
Environment info
- WordPress 6.1 Beta
- Gutenberg 14.1.1
- Twenty Twenty-Three
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
gyurmey2
Metadata
Metadata
Assignees
Labels
CSS StylingRelated to editor and front end styles, CSS-specific issues.Related to editor and front end styles, CSS-specific issues.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