Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor text has no default left/right margin unless theme opts into site-wide padding #35884

Open
kjellr opened this issue Oct 22, 2021 · 0 comments

Comments

@kjellr
Copy link
Contributor

@kjellr kjellr commented Oct 22, 2021

If a theme does not opt into site-wide padding through theme.json, and the user does not specify site padding through Global Styles, the post/page editor currently provides no left/right margins to prevent text from bumping up against the edges of the screen:

Screen Shot 2021-10-22 at 11 00 42 AM

This is sort of an issue for block themes, since it effectively requires them to supply either a site-wide padding value, or some custom CSS. More importantly though, it's a regression in the editor experience for users of classic themes that don't manually provide these margins.

To reproduce:

  1. Activate an older theme, like Twenty Eleven.
  2. Open the post editor, and either switch to one of the device previews (tablet/mobile), or make your browser window smaller.
  3. Note that the text bumps against the edges fo the screen.

Gutenberg version: Version 11.8.0-rc.2
Related: WordPress/twentytwentytwo#144

cc @youknowriad since this may be related to removing the site-wide margin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant