Skip to content

Navigation Block: Sidebar/Inspector control improvements & allow always-collapsed menu #30370

Closed

Description

@jasmussen

What problem does this address?

The inspector controls for the navigation block have grown organically and is deviating from proposals in #27331 and #27473 (comment) in a few ways.

Screenshot 2021-03-30 at 09 48 50

Additionally, with improvements ticketed in the following issues, it will be necessary to add some new controls:

This ticket serves to provide a path forward for the design of the navigation sidebar.

What is your proposed solution?

Screenshot 2021-03-30 at 09 34 55

A few things here, but note that each of these can happen as separate steps, and should be looked at holistically in context of #27473 and #27331:

  • Instead of adding additional panels that expand and collapse, show foundational functionality of the block right in the first panel, and retire the "Display settings".
  • Simplify and reduce the labels of the panels. "Color" instead of "Color settings",
  • Show a small preview of the mobile menu, and how it is affected by the toggles below.
  • Use a new segmented control (from Sidebar Controls & Component System #27331) to let you toggle between showing the burger never, mobile or always.

"Unfold nested submenus"

Part of this mockup is also a new toggle in the submenu category, to let you unfold nested submenus. That is, instead of having to expand out in ever expanding menus like this:

Screenshot 2021-03-30 at 10 08 39

... nested submenus would expand like this:

Screenshot 2021-03-30 at 10 09 37

Activity

  1. added
    [Type] Enhancement
    [Feature] Inspector Controls
    [Block] Navigation
    on Mar 30, 2021
  2. shaunandrews commented on Apr 5, 2021

    @shaunandrews
    Contributor

    Everything here seems super great, except for the mobile menu preview thing; I don't quite understand it's purpose, and with the design shown it's not obvious what it actually is/does.

  3. jasmussen commented on Apr 6, 2021

    @jasmussen
    ContributorAuthor

    Absolutely. The "feature card" at the top is something I think will either start to make sense in a PR, and take shape as part of that, or reveal itself to not work in practice.

    It is inspired by some of the Global Styles patterns and aims to elevate the sidebar from being a dull sequence of form widgets to adding some character to each block.

  4. self-assigned this
    on May 5, 2021
  5. mtias commented on Aug 12, 2021

    @mtias
    Member

    Where are we with this one now that the component is ready?

  6. changed the title [-]Navigation Block: Sidebar/Inspector control improvements[/-] [+]Navigation Block: Sidebar/Inspector control improvements & allow always-collapsed menu[/+] on Aug 26, 2021
  7. jasmussen commented on Sep 1, 2021

    @jasmussen
    ContributorAuthor

    There are some fresher mockups for this one here: #18395 (comment)

  8. added
    [Type] Overview
    on Sep 15, 2021
  9. jasmussen commented on Sep 15, 2021

    @jasmussen
    ContributorAuthor

    Changed this one to an overview issue, where #34783 exists as a separate ticket. I'd love to pair on that one.

  10. jasmussen commented on Oct 15, 2021

    @jasmussen
    ContributorAuthor

    The recent #35568 PR actually accomplished most of what's on this list. Except for this one:

    Instead of adding additional panels that expand and collapse, show foundational functionality of the block right in the first panel, and retire the "Display settings".

    This item was added to embrace one of the patterns being explored for Global Styles in #34574, but is arguably best tracked separately, as it is a pattern that can/should be applied to all blocks, not just navigation. In that vein, I'm going to close this one, and follow up with a separate ticket once those pieces come into more clarity.

  11. mtias commented on Oct 15, 2021

    @mtias
    Member

    Another thing we don't have is the "preview". Also using it in practice I think we can add more contextual info for each state. (As in, update the help description based on what option is set to better communicate what is going on.)

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

Metadata

Metadata

Assignees

Labels

[Block] Navigation[Feature] Inspector Controls[Type] Enhancement[Type] Overview

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions