diff --git a/.changeset/green-poems-play.md b/.changeset/green-poems-play.md new file mode 100644 index 00000000000..6bad5c2a0a2 --- /dev/null +++ b/.changeset/green-poems-play.md @@ -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`) diff --git a/packages/react/src/FilteredActionList/FilteredActionListWithModernActionList.tsx b/packages/react/src/FilteredActionList/FilteredActionListWithModernActionList.tsx index ae791e63909..b0a90f7141a 100644 --- a/packages/react/src/FilteredActionList/FilteredActionListWithModernActionList.tsx +++ b/packages/react/src/FilteredActionList/FilteredActionListWithModernActionList.tsx @@ -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} />