-
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
Enable zoom out mode for non-iframe editor #66789
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: -19 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.
I’ve tested with and without meta boxes present in Post editor and can’t spot any issues. The code change makes sense. This resolves the odd behavior of the toggle button’s inconsistent presence 🚀.
4a014e1
to
88516fe
Compare
@stokesman Thanks for the review! |
Tested this and worked all right - there is a weirder animation when the editor is not framed but I agree that if we keep the pattern behaviour we should add the button too. |
Co-authored-by: t-hamano <[email protected]> Co-authored-by: stokesman <[email protected]> Co-authored-by: annezazu <[email protected]> Co-authored-by: ndiego <[email protected]> Co-authored-by: ellatrix <[email protected]>
Fixes #66671
What?
This PR re-enables the zoom out toggle for the non-iframe editor that was disabled in #65452.
Why?
Selecting the Pattern tab forces the zoom out mode. This is correct behavior, but creates a contradiction because the non-iframe editor doesn't have the zoom out toggle button in the first place. The zoom out toggle button suddenly appears, but when you press it, it disappears.
This PR simply reverts #65452. When #65452 was submitted, zoom out mode didn't work in non-iframe editors. But now it seems to work correctly. The introduction of the
useZoomout()
hook or #66141 might be related.Testing Instructions
wp/6.7
branch, the meta boxes are not displayed in the zoom out mode (See Hide metaboxes in Zoom Out #66742). There is a discussion in Hide meta boxes when zoomed out #66718 about whether to implement this specification in trunk as well.Screenshots or screencast
b6352f628d5006a33fc9da05bf8ecfc6.mp4