-
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
Disable Zoom Out if no section root to allow for Theme opt in #67232
base: trunk
Are you sure you want to change the base?
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +52 B (0%) Total Size: 1.82 MB
ℹ️ View Unchanged
|
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.
Rather than add these selectively throughout the codebase, it feels like it should be more of an editor-level option of enabling/disabling zoom levels.
Something like this? https://github.com/WordPress/gutenberg/pull/67245/files |
What?
Disable Zoom Out if no section root to allow for Theme opt in by defining a `
zRelated to #67113.
Why?
Because reports have been coming in that the block layout of some Themes isn't compatible with a good experience in Zoom Out.
How?
With this change if a
<main>
tag is not defined (or we're not editing a entity with acore/post-content
block) then Zoom Out will be disabled.This allows Themes to opt in to Zoom Out based on where they place a
<main>
tag. If no<main>
is defined then Zoom Out will not work.Testing Instructions
<main>
from templateTesting Instructions for Keyboard
Screenshots or screencast