scrwd,
@scrwd@mastodon.social avatar

I'm working on an accessible menu-button 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>  

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • GTA5RPClips
  • DreamBathrooms
  • cisconetworking
  • magazineikmin
  • InstantRegret
  • mdbf
  • Youngstown
  • tacticalgear
  • rosin
  • slotface
  • thenastyranch
  • everett
  • kavyap
  • Durango
  • JUstTest
  • osvaldo12
  • tester
  • khanakhh
  • normalnudes
  • ngwrru68w68
  • modclub
  • cubers
  • ethstaker
  • provamag3
  • Leos
  • anitta
  • megavids
  • lostlight
  • All magazines