-
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
Use a DropdownMenu for menu selection in the navigation screen #25390
Conversation
Size Change: -27.6 kB (2%) Total Size: 1.17 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On this PR when I create a new menu the selector does not move to the new menu created, it remains on the previously selected one.
@draganescu Good catch. 07208b6 fixes that. |
I'm thinking it might be better to consolidate the interactions; All the other buttons here (Add new, Manage locations) are DropdownMenu's and maybe this one should be too. It would look something like this: Posted this same comment over on #25312 (comment) |
Thanks @shaunandrews, that's much nicer. Here's how it looks now: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works great and looks the same! 👏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From an accessibility perspective, a DropdownMenu
looks good to me and I do see it brings in consistency. However, there's no indication of which menu is being edited. I'd like to propose to add a H2 heading, please see my comment on the issue: #25312 (comment)
Roughly:
Thanks for reviewing @afercia. Is the position of an @shaunandrews would be great to get your advice on how to incorporate this into the screen. |
Well, the visual/reading order should match the DOM order. Apart from that, headings don't necessarily need to look "big". They can be styled, as long as there's a visual hierarchy that matches the semantic hierarchy. |
Thanks @talldan ! Question: is it possible to have a H2 heading also when there are no menus? I'd use a "Create menu" text for the heading or something along those lines. Otherwise, that page section won't have a heading at all (also the current H3 List View will skip a level): |
Thanks @shaunandrews, I've made those changes: The header can show three things:
|
Oops, I missed this earlier this morning. Somehow I looked at it and thought this text was part of the screenshot 😄 I've now updated the header text to:
|
@afercia could you re-review this PR? :) It seems it's current state reflects your requested changes. Thank you 🙏 |
Description
Closes #25312.
Use a DropdownMenu component for choosing a menu.
Needs accessibility feedback ...
How has this been tested?
Screenshots
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist: