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

Add fix for CSS override for Gutenberg's static mobile breakpoint #97

Merged
merged 2 commits into from
Dec 6, 2021

Conversation

johngodley
Copy link
Member

Gutenberg adds a position: static to the page to stop it scrolling, but that's only relevant when the editor is full page like it is in Gutenberg. Ideally this is left up to the client.

We need to override this as it's not possible to scroll the page at all otherwise.

We still want the static position when viewing previews, otherwise Gutenberg can't calculate the height.

Gutenberg now adds a class to the html element. We want to remove the position without using `!important`, so that it doesn't also break previews, which change the `position` to another value.
@johngodley johngodley merged commit a1ac62e into trunk Dec 6, 2021
@johngodley johngodley deleted the fix/2.8.1 branch December 6, 2021 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant