Skip to content

Zoom Out: Disabled when show template disabled #69777

Open

Description

@bph

Description

The page editor /site editor > page is supposed to allow for Zoom out feature to be in the top toolbar and be also invoked with starter content.

Omitting the zoom out feature breaks backward compatibility as it was already available in 6.7

The is a PR7232 #67232 in Gutenberg 19.8 that modifies when the Zoom out is available. However, it specifically mentions in the testing instructions "Test that you can still access Zoom Out from a Page (using Post Editor and Site Editor)."

See also Slack https://wordpress.slack.com/archives/C080HLPP2Q6/p1743426236142339?thread_ts=1743426136.410659&cid=C080HLPP2Q6 discussion in release leads channel

Further testing revealed that if you enable "show template" via the preview tab, it also enables the Zoom out feature.

Step-by-step reproduction instructions

  • Got to WP admin > Add New page
  • do you see zoom out?
  • Use the Preview tab and enable Show template.
  • Do you see zoom out?

Screenshots, screen recording, code snippet

No response

Environment info

WordPress 6.8 RC 1

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Activity

  1. added
    [Type] Bug
    on Mar 31, 2025
  2. bph commented on Mar 31, 2025

    @bph
    ContributorAuthor

    Here is the video

    Screen.Recording.2025-03-31.at.14.59.33.mov
  3. Mamaduka commented on Apr 2, 2025

    @Mamaduka
    Member

    Thanks for creating the issue, @bph!

    I must respectfully disagree that this is a breaking change. Is it confusing? Sure, but it also won't break users' templates or pages. I've also voiced a similar concern in the PR.

    New features like "Zoom Out" often have to calibrate conditions to make them more helpful, and this is what I think is happening here. Like @annezazu pointed out, the "Zoom Out" feature wasn't functioning correctly for a wide range of themes because of the missing <main> element block.

  4. changed the title [-]WordPress 6.8: zoom out disabled when show template disabled.[/-] [+]Zoom Out: Disabled when show template disabled[/+] on Apr 2, 2025
  5. added
    [Status] In discussion
    on Apr 2, 2025
  6. bph commented on Apr 3, 2025

    @bph
    ContributorAuthor

    New features like "Zoom Out" often have to calibrate conditions to make them more helpful, and this is what I think is happening here.

    This worked well with Twenty-Twenty-Five as each template has <main> elements. However, the Zoom out View breaks even for those pages. Which brings me to the conclusion that the new features was not the Zoom out View but the Show Template on and off feature in the Editor.

    it also won't break users' templates or pages.

    You might define breaking change differently than I do, though:

    The Zoom out view worked fine on Pages even when not displaying template view. So that's the expectation a WordPress 6.7 user has, who doesn't use the show template feature. For that person, it's a surprising change of behavior and that's how I define breaking change.

    Nevertheless, I do think this is a bug that needs to be fixed as the Zoom out view shouldn't be coupled with the Show template view. So even if the show template is switched off, the Zoom out view should still work.

  7. Mamaduka commented on Apr 3, 2025

    @Mamaduka
    Member

    Nevertheless, I do think this is a bug that needs to be fixed as the Zoom out view shouldn't be coupled with the Show template view. So even if the show template is switched off, the Zoom out view should still work.

    The "Zoom Out" feature is indirectly coupled with the "Show Template" option because the <main> element blocks usually live on the template level; they aren't represented on canvas when editing only page content (post-only mode).

    Currently, I don't have suggestions for the best resolution for this issue. Cc @getdave, @jeryj

  8. bph commented on Apr 3, 2025

    @bph
    ContributorAuthor

    I would also like to know how @fabiankaegy and @karmatosed from the agency - customer perspective think about this conundrum, given that Zoom out view has mainly to do with patterns on a page or post rather with a template space. Although technically explainable it still feels like an arbitrary coupling of two different problem spaces.

  9. fabiankaegy commented on Apr 3, 2025

    @fabiankaegy
    Member

    My honest answer here is that I think the way Zoomed out was introduced in the first place with the pattern inserter has been super confusing and I have not yet come across a client who hasn't been irritated by it / is constantly struggling to get out of the mode again.

    I'm saying that because it pictures how I view this specific issue here. Because of what I just said I personally view the fact that this is making is harder to trigger the zoomed out mode is a positive side effect of this coupling...


    If I completely detach myself from my experience with zoomed out though I can agree with what you are saying @bph. It sadly very much depends on the actual post type & layout what makes and doesn't make sense here... On a page that is just full bleed content it might make a ton of sense to have zoomed out mode be available for users because even without the show template option it looks like it will on the FE and therefore zoomed out provides a (theoretically) good experience.

    For another post type with a sidebar etc it might make less sense because the actual preview is less representative of what you actually get to see on the FE and therefore the zoomed out is giving you a false perception of what the site is looking like from a bit more of a Birds Eye view...


    Having said all of that I also don't quite know where to go from here... We can revert the coupling and leave the (in my eyes worse) current experience untouched whilst we are still trialing different things... But in reality this to me again is an example where a feature (Zoomed out in this case) was merged way too early. Yes merging early may work if we have all the active contributors available that move a specific feature forward over small sprints... But now that all those contributors have been pulled away we are left in the situation that half baked features that really shouldn't have shipped in the way they have are out there in core causing issues such as this... (sorry for the little rant here. I know no-one here is responsible for any of this :)❤️)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Zoom Out[Status] In discussion[Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions