Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/slimy-rabbits-try.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
---
'@primer/react': patch
---

Communicate the SelectPanel multi-select capability to assistive technologies.
3 changes: 2 additions & 1 deletion src/SelectPanel/SelectPanel.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -158,8 +158,9 @@ export function SelectPanel({
onFilterChange={onFilterChange}
{...listProps}
role="listbox"
items={itemsToRender}
aria-multiselectable={isMultiSelectVariant(selected) ? 'true' : 'false'}
selectionVariant={isMultiSelectVariant(selected) ? 'multiple' : 'single'}
items={itemsToRender}
textInputProps={extendedTextInputProps}
inputRef={inputRef}
// inheriting height and maxHeight ensures that the FilteredActionList is never taller
Expand Down