JedWatson / JedWatson/react-select
aria-describedby not respected
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 28k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
Are you reporting a bug or runtime error? -> BUG
react-select doesn't respect aria-describedby as prop. This results in for errors not being pronounced by screen readers when focusing back on the field.
<AsyncSelect
onChange={handleSelect}
loadOptions={loadOptions}
placeholder={placeholder}
inputId={id}
aria-describedby="id-of-another-element"
/>
Example:
https://codesandbox.io/s/react-select-v5-sandbox-forked-i1vu1l
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the linked CodeSandbox using AsyncSelect and aria-describedby, then trace how the prop is handled before the focusable input is rendered. Done means the referenced element is associated with the input and its content is available to screen readers when focus returns to the field, with a regression test covering the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- accessibility, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100