class Primer::Alpha::ActionMenu::ListWrapper
used as a standalone component.
This component is part of <%= link_to_component(Primer::Alpha::ActionMenu) %> and should not be
def initialize(menu_id:, **system_arguments)
-
system_arguments(Hash) -- The arguments accepted by <%= link_to_component(Primer::Alpha::ActionList) %> -
menu_id(String) -- ID of the parent menu.
def initialize(menu_id:, **system_arguments) @menu_id = menu_id system_arguments[:aria] = merge_aria( system_arguments, { aria: { labelledby: "#{@menu_id}-button" } } ) system_arguments[:role] = :menu system_arguments[:scheme] = :inset system_arguments[:id] = "#{@menu_id}-list" super(**system_arguments) end