Skip to content

[material-ui][Menu] Let buttons opening menus have an activated stateΒ #44285

Open
@fredrikcarlbom

Description

Summary

If having a couple of buttons, each opening a menu. It is confusing to me which button the menu is connected to as they do not have any visual indication.

Examples

Material Design has an Activated state which could be used to cover this.

Here is a sandbox with how this could be visualized: https://codesandbox.io/p/sandbox/menu-buttons-activated-state-yfpm57

Images from the sandbox above:

Activated state styling
image image

Compared to existing default styling
image image

Motivation

I want to make the connection between the button and the menu easier to understand, this might be useful if there are multiple menus next to each other, especially if they use icons instead of text.

While it is easy to implement in an application using MUI, I think the concept is important enough to warrant including it in MUI itself.

Search keywords: button menu activated

Metadata

Assignees

Labels

component: buttonThis is the name of the generic UI component, not the React module!component: menuThis is the name of the generic UI component, not the React module!design: materialThis is about Material Design, please involve a visual or UX designer in the processnew featureNew feature or requestwaiting for πŸ‘Waiting for upvotes

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions