Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kendallgassner committed Jun 27, 2024
1 parent 7a8eb12 commit 51b170d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/primer/alpha/action_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def allows_selection?
end

def acts_as_listbox?
@system_arguments[:role] == :listbox
@system_arguments[:role] == "listbox"
end

def acts_as_menu?
Expand Down
2 changes: 1 addition & 1 deletion app/components/primer/alpha/action_list/item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def initialize(
elsif @list.allows_selection?
ActionList::SELECT_VARIANT_ROLE_MAP[@list.select_variant]
elsif @list.acts_as_menu?
ActionList::DEFAULT_MENU_ITEM_ROLE
ActionList::DEFAULT_LIST_BOX_ROLE
end

@system_arguments[:role] = @list.acts_as_menu? ? :none : nil
Expand Down

0 comments on commit 51b170d

Please sign in to comment.