-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Closed
Copy link
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Feature] Zoom Out[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
Because the style book and global style revisions are presented in their own iframes, they're not connected to changes in the canvas width when:
- activating zoomed out mode
- toggling between device previews
I think it goes beyond activating zoomed out mode for these iframes. I tried it and it's not a great experience. Every time the iframe renders the width "bounces" in zoomed out mode.
style-book-zoom-out-bug.mp4
Tip
A quick fix would be to deactivate the zoomed out / device tools for style book/global styles revisions.
Beyond that, there is an idea to create an editor instance for previewing global styles. This editor would deactivate a lot of block editor tools that are unnecessary.
The zoomed out / device tools could then be introduced incrementally.
Step-by-step reproduction instructions
- Go to the Site Editor
- Open up the style book or global styles revisions
- Activate zoom mode - observe that zoomed out mode doesn't activate
- Toggle the device previews - observe that the canvas width doesn't change
Screenshots, screen recording, code snippet
2024-09-25.12.47.32.mp4
Environment info
- WordPress 6.6
- Gutenberg trunk
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- Yes
aaronrobertshaw
Metadata
Metadata
Assignees
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Feature] Zoom Out[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended