Skip to content

[menu] allow buttons to open menu(list) popups #1196

@scottaohara

Description

@scottaohara

the common expectation on how to build single instances of menu popups in UI is to invoke them from button elements.

<button aria-haspopup=menu aria-expanded=...>
  foo
</button>
<el-menu role=menu>
  <!-- menuitems here -->
</el-menu>

in the menu proposal this use case should be covered - and this could be supported by the command/commandfor attributes, as one idea.

originally, button type=menu was how this had been previously spec'd back when menu was attempting to be something more than another way to spell ul.

Metadata

Metadata

Assignees

Labels

menuMenu elements proposalneeds editsThis is ready for edits to be made

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions