-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Improve the UI of the Navigation block display section #44024
Comments
I think the preview being an interactive element is a bit of an obscure interaction, so improving that would be useful. Instead of a toggle for "Use icons" can we try another segmented control that says "Icon / Text" that toggles between the options? I'm not sure we should allow picking the menu and close set ups separately, it seems to add a bunch of cognitive complexity. Also, when the label is set, we should probably allow further customization (typography, border, etc). |
I agree with you about the preview being problematic. Here's an iteration based on your feedback:
Since we have typography and color settings in other sections of this block, I understand you mean that you want to allow customizing these labels independently from the rest of the menu, right? But wouldn't that make things more complicated? |
Added a final iteration based on @jasmussen suggestion: instead of a toggle, use the settings icon as we do in other sections. |
Wanted to note that for now we've removed the two ellipses from the icon options. (Let's explore a couple of excellent replacements, not necessarily as part of this PR, just noting) |
Thanks, @jasmussen, I've updated the design in Figma and in the issue description to reflect that change. |
I updated the original issue above to show the proposed position of this section in the sidebar: currently, we show the Display section under Layout and Menu, but it should appear above Layout since Display defines the basic appearance and behaviour of the navigation. |
@aaronrobertshaw Are you aware of a way we can force the |
@SaxonF It would be worth adding this to tasks to complete in 6.3 - are you happy with the design proposed above? Reorganising this sidebar a bit may well improve user interactions with key tasks. Currently it feels way too focused on advanced controls such as layout where I expect that 80% of user interactions will be for:
|
@getdave Looks good to me. I'd personally like to see layout grouped with dimensions, which this issue looks at, so the positioning question might not be an issue anymore. |
Thanks for the ping @getdave 👍
Both the Nav block's Display panel, and the Layout block support panel, render to the There could be a couple of options here but none that came to mind were particularly clean or elegant.
Both of those options, leave us open to plugins abusing the top group's slot for promoting their controls beyond the prominence they warrant. Assuming we can find a means to restrict the use of a new group to only the desired blocks, and only core controls, then option I'm not sure of its relevance here but there was an old issue (#35541) that evaluated the order of block support panels in the sidebar. So the current order was at least deliberate.
If Layout was merged with Dimensions and that panel relocated to the Settings tab, we'd avoid the need for a |
I've not had a chance to form deep thoughts here, but if we do consolidate dimension controls in the layout panel, it needs a somewhat solid mockup that considers all the use cases, including how dimensions change depending on the layout type. |
Thanks Aaron 👍
Yes it feels like Core should be able to decide how it wants to order the panels. How to do that....is another question 😄 |
I haven't looked into it but it would be nice if we could use the lock/unlock feature to make the new InspectorControls group "private" or "core-only". |
The current interface of Navigation block display section is quite convoluted.
Because the preview sits on top of the section, if the user selects "Mobile" or "Always" in the segment control and then expands the preview, the main setting gets pushed to the bottom, making the UI confusing.
See initial proposal
I propose we switch the order of the setting and tweak the height of the preview and the size of the X icon:
This enhancement will also help us address this feature request to customize the labels:
Proposed design for implementation (2022-09-13)
Design - Prototype
Proposed position on the sidebar
The text was updated successfully, but these errors were encountered: