@@ -26,7 +26,7 @@ class TabPanels < Primer::Component
2626 Primer ::Alpha ::Navigation ::Tab . new (
2727 selected : selected ,
2828 with_panel : true ,
29- list : false ,
29+ list : true ,
3030 panel_id : "panel-#{ id } " ,
3131 **system_arguments
3232 )
@@ -43,14 +43,23 @@ class TabPanels < Primer::Component
4343
4444 # @param label [String] Sets an `aria-label` that helps assistive technology users understand the purpose of the tabs.
4545 # @param align [Symbol] <%= one_of(Primer::TabNavHelper::EXTRA_ALIGN_OPTIONS) %> - Defaults to <%= Primer::TabNavHelper::EXTRA_ALIGN_DEFAULT %>
46+ # @param body_arguments [Hash] <%= link_to_system_arguments_docs %> for the body wrapper.
47+ # @param wrapper_arguments [Hash] <%= link_to_system_arguments_docs %> for the `TabContainer` wrapper.
4648 # @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
4749 def initialize ( label :, body_arguments : { } , wrapper_arguments : { } , **system_arguments )
4850 @align = EXTRA_ALIGN_DEFAULT
51+ @wrapper_arguments = wrapper_arguments
4952
50- @system_arguments = { ** deny_tag_argument ( **system_arguments ) , ** deny_tag_argument ( ** wrapper_arguments ) }
51- @system_arguments [ :tag ] = :"tab-container"
53+ @system_arguments = deny_tag_argument ( **system_arguments )
54+ @system_arguments [ :tag ] = :div
5255 @system_arguments [ :classes ] = tab_nav_classes ( @system_arguments [ :classes ] )
53- @system_arguments [ :"aria-label" ] = label
56+
57+ @body_arguments = deny_tag_argument ( **body_arguments )
58+ @body_arguments [ :tag ] = :ul
59+ @body_arguments [ :classes ] = tab_nav_body_classes ( @body_arguments [ :classes ] )
60+
61+ @body_arguments [ :role ] = :tablist
62+ @body_arguments [ :"aria-label" ] = label
5463 end
5564
5665 def before_render
0 commit comments