scrwd, I'm working on an accessible menu-button #WebComponent following that pattern https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/
I'm looking for suggestions how to attach actions to the menu items themselves. The markup below is upgraded with appropriate roles and behaviours. But in a generic component, what is the best strategy for supporting custom actions?
<menu-button> <button>Toggle</button> <div> <button>Action 1</button> <button>Action 2</button> </div> </menu-button>
Add comment