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

Zoom Out: Can't exit the mode after switching between the pattern categories #63168

Closed
Mamaduka opened this issue Jul 5, 2024 · 1 comment
Closed
Labels
[Feature] Zoom Out [Type] Bug An existing feature does not function as intended

Comments

@Mamaduka
Copy link
Member

Mamaduka commented Jul 5, 2024

After switching between the pattern categories, I noticed that closing the inspector doesn't exist in the "Zoom out" mode in the Site Editor. It works if I only select one category and then close the inspector.

The behavior is slightly different in the post editor; the mode is toggled on every category change.

This is probably a bug with the useZoomOut hook and how it's run from pattern category panels.

cc @jeryj, @scruffian

Testing Instructions

  1. Enabled "zoomed out view when selecting a pattern category in the main inserter" from Gutenberg > Experiments.
  2. Go to Site Editor > any template.
  3. Open the Inserter
  4. Switch between Pattern categories.

Screencasts

Site Editor

CleanShot.2024-07-05.at.11.17.58.mp4

Post Editor

CleanShot.2024-07-05.at.11.15.22.mp4
@Mamaduka Mamaduka added [Type] Bug An existing feature does not function as intended [Feature] Zoom Out labels Jul 5, 2024
@jeryj
Copy link
Contributor

jeryj commented Jul 9, 2024

I believe this is fixed by #63315 as well. I'll close it, but reopen it if I wasn't testing it right!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Zoom Out [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants