-
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
DropdownMenu v2: Design tweaks #55933
Comments
Feedback from #56035 It appears the new spec doesn't provide a specific style for dropdown menu items that are selectable and thus have a pressed/active state and use both an icon and visible text. There are cases in the editor where icon + visible text is already in use, for example the Align dropdown. #56035 uses icon + visible text for the Heading levels as well. Screenshot: Worth also noting that the Button component, which is used in the Dropdown, does have a 'pressed' styling for icon + text. However, it works with the Screenshot: |
The new Nevertheless, what you're flagging could be seen as a general improvement that we can make to the |
Will it still use a |
Repeating here the accessibility feedback already provided on #56035
I would argue icons are always not universally descriptive. It's not only about the ability to understand what an icon represent. It's also about differenc cultural beackgrounds, where the same icon may have a totally different meaning depending on the local culture. In many cases, icon-only is just not understandable by everyone. Regarding the pattern icon + visible text, I'd like to remind there's already several places in the dropdowns where this pattern is in use. However, the placement and also the purpose of the icons is inconsistent. I'm not sure that helps the overall UI clarity. Rather, I'd think it adds a lot of cognitive load. See the screenshot below. |
@afercia :
No "relevant" discussion about it. The new version that is being worked on at the moment uses
I'll let @jameskoster reply to this point in a more complete manner, but in the meantime, I wanted to confirm these points were definitely taken into account, and that's why we've been considering text-only (no icon) as the safest, most clear way to represent radio/checkbox menu items. For (the few cases) where designers may consider using icons, we adopt a solution similar to icon-toggles instead (example), of course always labelling icons properly (and adding tooltips).
What you're flagging is true, and in fact one of the main goals of this new design spec is exactly to bring consistency in those UIs, especially around how icons are used and where they are displayed. So what you're flagging |
As @ciampo mentioned a big motivator for the spec was to tidy up the inconsistencies you've surfaced while incorporating new elements (like the To ensure reasonable spacing and alignment, (and to eliminate cognitive load when check/radio + decorative icon appear adjacent), it became clear that selection indicators and decorative icons should be mutually exclusive within a group. This produces satisfactory results in all applications with the (arguable) exception of the alignment (and similar) controls in the toolbar. A version with smaller radios/checks was considered, but as you can see in the example below it doesn't work well in situations where a group contains selectable items without a decorative icon: We can potentially revisit such exceptions later, but it's quite tricky to come up with a pattern that intuitively supports both checkbox and radio applications without violating the alignment and spacing principles. In the meantime those menus can continue to use the current component, be updated to use the new spec, or go icon-only. |
@jameskoster thanks for the clarification.
I'd agree a selectbale / checked indicaiton plus the icon would be clumsy. If that means dropdowns will not use icons any lonver in favor of visible text, that's a win-win. |
dropdown.mp4
Some design details may be subject to change, but the full spec for updated MenuItems/MenuItemFlyouts can be found in Figma here.
The prototype in the video above can be tried here.
List of tweaks
Click to expand
Using contextQuestions:
The text was updated successfully, but these errors were encountered: