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

[a11y] Add aria-roledescription #1746

Merged
merged 1 commit into from
Aug 9, 2019

Conversation

rcourtie
Copy link

@rcourtie rcourtie commented Aug 8, 2019

As per the recommendation of the W3C, adding an aria-roledescription to describe the role of the datepicker application. Since this is supposed to be a human-readable and localized description of the element it's passed in through the existing phrases prop, and a default value was included.

As per the recommendation of the W3C, adding an `aria-roledescription`
to describe the role of the datepicker application. Since this is
supposed to be a human-readable and localized description of the element
it's passed in through the existing phrases prop, and a default value
was included.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.008%) to 84.895% when pulling 9440e28 on rcourtie:a11y-add-aria-roledescription into 75bba6b on airbnb:master.

@ljharb ljharb added the semver-minor: new stuff Any feature or API addition. label Aug 8, 2019
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM, would be good to have some a11y folks confirm

@ljharb ljharb merged commit 7c51390 into react-dates:master Aug 9, 2019
@alejandrogarciasalas
Copy link
Collaborator

@rcourtie @backwardok This seems to be failing with axe tests, I am getting the following error:

Screen Shot 2019-09-18 at 4 12 24 PM

what's the best way to proceed, should we ignore this tests or remove the label?

@backwardok
Copy link
Contributor

@alejandrogarciasalas since it's providing additional information and nothing super crucial (there are additional pieces of information that are also provided to help with what this component is), I think it's ok to ignore that warning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-minor: new stuff Any feature or API addition.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants