-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix theme background regression. #18687
Conversation
@@ -1,3 +1,9 @@ | |||
// This min-height is there to ensure the editing canvas extends at least to the full height available. | |||
// This ensures a theme that uses a background color other than white doesn't look cropped without content. | |||
.edit-post-visual-editor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we move this to the stylesheet specific for that component https://github.com/WordPress/gutenberg/blob/master/packages/edit-post/src/components/visual-editor/style.scss#L1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks.
It didn't occur to me that this existed, but I think I tackled the same issue in my pull request at #18732 . While the changes here are sufficient to stretch the theme background, there are also issues with clicks below the editor not directing focus to the last default block. I've included a fix for that in #18732. |
This PR fixes that.
2a0ee55
to
81f9eb6
Compare
I rebased to see if that makes the checks pass. And then I read your comment, Andrew! Please feel free to merge yours as it seems to be a better fix than this one, and I'll close this PR. 🎉 |
Superseded by #18732 |
#18044 introduced a small regression where a theme with a non-white background, for example TwentyTwenty, looked cropped.
This PR fixes that by applying a min-height to the canvas.
Before:
After: