Skip to content

Commit

Permalink
SelectPanel: add role=combobox to filter input (#4977)
Browse files Browse the repository at this point in the history
* add role=combobox to filter input

* Create selectpanel-combobox.md
  • Loading branch information
siddharthkp committed Sep 19, 2024
1 parent c097e96 commit 1adea12
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/green-poems-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

SelectPanel: Add `role=combobox` to filter input (behind feature flag `primer_react_select_panel_with_modern_action_list`)
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,11 @@ export function FilteredActionList({
onChange={onInputChange}
onKeyPress={onInputKeyPress}
placeholder={placeholderText}
aria-label={placeholderText}
role="combobox"
aria-expanded="true"
aria-autocomplete="list"
aria-controls={listId}
aria-label={placeholderText}
aria-describedby={inputDescriptionTextId}
{...textInputProps}
/>
Expand Down

0 comments on commit 1adea12

Please sign in to comment.