Skip to content

Library click through to template part focus mode hides sidebar and Navigation editing feature #51839

Closed

Description

@getdave

As part of Navigation on Browse Mode it was agreed that in focus mode for Template Parts it would be useful to display any Navigation Menus present in the blocks within in the browse mode sidebar.

However with the change to Library, when you click on a Template Part you now get taken to the focus mode in "edit" mode (canvas=edit) which hides the sidebar.

Given the value of #51492, we should retain the sidebar. If necessary this can be done conditionally by detecting whether a Navigation block is present in the blocks.

Screen.Capture.on.2023-06-23.at.11-09-15.mp4

Activity

  1. added
    [Type] Regression
    [Block] Template Part
    [Feature] Focus Mode
    [Feature] Navigation in Site View
    on Jun 23, 2023
  2. getdave commented on Jun 23, 2023

    @getdave
    ContributorAuthor

    cc @talldan for visibility

  3. talldan commented on Jun 26, 2023

    @talldan
    Contributor

    cc @talldan for visibility

    Thanks. I don't know much about the sidebar specifics. It might have been a design choice or an accidental inclusion where we didn't spot the regression. It's quite a subtle difference, so when testing I personally wouldn't have considered this a bug.

    @SaxonF @kevin940726 or @aaronrobertshaw may know more.

  4. getdave commented on Jun 26, 2023

    @getdave
    ContributorAuthor

    @WordPress/gutenberg-design Just a reminder that this feature was requested in #50704 as part of #50396.

    I think all that needs to change is, if there is a Navigation in the Template Part then show the sidebar.

    Or we could just show the sidebar at all times.

  5. kevin940726 commented on Jun 26, 2023

    @kevin940726
    Member

    I noticed this too when I was fixing the routing issue for mobile. I thought it was a deliberate change so I retained the behavior. I agree that landing the canvas=view page first will be better though!

    FWIW, due to how the sidebar animation is working now, landing directly to the edit mode might cause some unwanted flickering. It's not impossible to fix, but landing to the view mode first might make it easier.

  6. getdave commented on Jun 26, 2023

    @getdave
    ContributorAuthor

    Ok I raised a PR in #51897 and folks can approve or reject as we determine. Thanks all 🙇

  7. added
    [Status] In Progress
    on Jun 26, 2023
  8. moved this from ❓ Triage to 📥 Todo in WordPress 6.3.x Editor Taskson Jun 26, 2023
  9. removed
    [Status] In Progress
    on Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Block] Template Part[Feature] Focus Mode[Feature] Navigation in Site View[Type] Regression

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions