Skip to content

Site Editor Navigation panel: When the 'main' navigation menu changes, it's not always clear why, and can be confusing  #48690

Description

@jameskoster

The Navigation panel is supposed to detail the website's main navigation menu. The problem is that the menu that appears in this panel can sometimes change, and it's not always obvious why it does so which can lead to confusion.

Here's the current logic for determining the 'main' menu.

the navigation referenced by the first nav block in the template

This part seems to be causing issues. Example:

I want to add some social icons at the very top of my site. I create a new menu for this in my Header template part:

Screenshot 2023-03-02 at 13 01 11

After saving, I now find that menu represented in the Navigation panel:

Screenshot 2023-03-02 at 13 01 48

This is unexpected, and it seems nonsensical for this menu to be given such prominence.

the navigation manually selected by the user in the navigation block inspector
when a navigation block gets inspected within the canvas

This part is also a bit problematic. I don't think that merely interacting with a Navigation menu should subsequently mark it as the 'main' one.


What's the solution? It would likely make the Navigation panel feel more robust if we simply said that the first menu created is the 'main' one. This would replace the default 'Page list' menu that exists before no menus have been created.

As a bonus point it would be nice to mark this menu somehow in popovers like this one:

Screenshot 2023-03-02 at 13 13 14

It may be as simple as adding a (main) suffix.

Screenshot 2023-03-02 at 13 16 19

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Design FeedbackNeeds general design feedback.[Block] NavigationAffects the Navigation Block[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions