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

Fix theme background regression. #18687

Closed
wants to merge 2 commits into from
Closed

Fix theme background regression. #18687

wants to merge 2 commits into from

Conversation

jasmussen
Copy link
Contributor

#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:

Screenshot 2019-11-22 at 11 31 46

After:

Screenshot 2019-11-22 at 11 33 51

@jasmussen jasmussen added [Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release labels Nov 22, 2019
@jasmussen jasmussen self-assigned this Nov 22, 2019
@@ -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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks.

@aduth
Copy link
Member

aduth commented Nov 25, 2019

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.

@jasmussen
Copy link
Contributor Author

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. 🎉

@aduth
Copy link
Member

aduth commented Dec 2, 2019

Superseded by #18732

@aduth aduth closed this Dec 2, 2019
@aduth aduth deleted the fix/theme-bg-issue branch December 2, 2019 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants