Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aria attributes to dummy input #3090

Merged
merged 6 commits into from
Oct 4, 2019
Merged

Conversation

akiselev
Copy link
Contributor

@akiselev akiselev commented Oct 2, 2018

When props.isSearchable is false, aria attributes like aria-label and aria-labelledby are not passed through to the DummyInput control that takes place of the input text box. Since the dummy component can't be replaced, making a non-searchable select breaks accessibility even though there are standards patterns for non-editable combo boxes.

Since react-select consumers have control over both the accessibility props and isSearchable without control over DummyInput, they should remove the accessibility props from the dummy input themselves by changing <Select> props.

@scolacur
Copy link

scolacur commented Apr 10, 2019

@JedWatson is it possible to get this added into the library? Not having the ability to add aria labels to non-searchable inputs makes this library unsuitable for projects required to meet modern accessibility standards.

@jrparish
Copy link

Can we revisit this fix? It would be great to get this in to solve accessibility issues with this component.

@changeset-bot
Copy link

changeset-bot bot commented Oct 4, 2019

🦋 Changeset is good to go

Latest commit: 910b944

We got this.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@emmatown emmatown merged commit 3c7de0d into JedWatson:master Oct 4, 2019
@darian-trama
Copy link

Just wondering if this update will make it into the next release. Also wondering when next release would be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants