-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Navigation on Browse Mode: Add navigation list view to the template part editor #50704
Comments
How's this? CC: @jameskoster |
That looks like good for template parts containing a single menu.
Appreciate it's not something to address here but we really need to fix the frame dimensions when displaying template parts 🙈 |
Good one. Super edge-case, but good one. How about, one subheading per nav block?
Name of the navigation. I believe it should already smartly name it something like that, if the navigation is created when it's inside a Header template part.
Yes, I omitted that to keep the design on point, but @scruffian if you'd like to see that, let me know!
Right — do you mean in trunk, where it's full height? Or in the mockup? |
Drilldowns could work, but then we have the issue of editing just the generic style-book version of the navigation menu, without the context of the template part. That's why I'd default to them stacked first and foremost. But if the implementation is simpler with the drilldowns and stylebook nav editing, that's fine too.
👌 |
Good point. I think we'll end up needing a way to toggle visibility when there are multiple menus (accordions?) so you can focus, and avoid dragging items from one menu to another (would that even work?), but let's try stacking. |
How about (when you have multiple menus) you list all the menus in the template (as shown) but then when you click one it takes you to the |
Another aspect to consider here is that users might want to switch the navigation that a template is using. I wonder if there's a way to surface that action in these designs as well? |
How about
That avoids the stacking, which I agree won't scale and I bet will introduce a11y problems. |
I'd be a little anxious about assuming the first menu in the template to be the primary one. For instance a store might have a small menu right at the top of the page with links such as 'log in/out', 'my account', 'cart', and nothing else – the experience would be a little strange if that was prioritised over the main menu. But if the suggested follow-up landed before 6.3 then it's probably fine. |
Actually I've decided I'll just land it in a single PR. Watch this space. |
As part of #50396 it would be good to add a Navigation List View to the template part when a Navigation block is part of a template part. This is just a very rough mockup. cc @jasmussen for a better one!
The text was updated successfully, but these errors were encountered: