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

fix(a11y): missing role=row #3350

Closed
wants to merge 4 commits into from
Closed

fix(a11y): missing role=row #3350

wants to merge 4 commits into from

Conversation

qub1t
Copy link
Contributor

@qub1t qub1t commented Sep 5, 2019

After the addition of role="columnheader" (#3343), the parent div needs role="row", just like all consecutive sibling divs

Before submitting a pull request, please make sure you have at least performed the following:

  • read and followed the CONTRIBUTING.md guide.
  • built and tested the changes locally.
  • [] added/updated any applicable tests.
  • [] added/updated any applicable API documentation.
  • [] added/updated any applicable demos.

A finding of an a11y test on a project, where the Datepicker is used, was that the proposed columnheader role is missing, thus making the datepicker not accessible for blind users.
After the addition of ```role="columnheader"``` (ng-bootstrap#3343), the parent div needs role="row", just like all consecutive sibling divs
fix(a11y): missing role=row
@codecov-io
Copy link

codecov-io commented Sep 5, 2019

Codecov Report

Merging #3350 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3350   +/-   ##
=======================================
  Coverage   90.88%   90.88%           
=======================================
  Files          95       95           
  Lines        2743     2743           
  Branches      510      510           
=======================================
  Hits         2493     2493           
  Misses        190      190           
  Partials       60       60
Flag Coverage Δ
#e2e 55.01% <ø> (ø) ⬆️
#unit 87.99% <ø> (ø) ⬆️
Impacted Files Coverage Δ
src/datepicker/datepicker-month-view.ts 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c7bc4d7...4dcf483. Read the comment docs.

Copy link
Member

@benouat benouat left a comment

Choose a reason for hiding this comment

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

Hey @qub1t could you address my below comment in the review?

The change is so small that ideally this PR should only have a single commit, with a single change, only the missing role="row"... Maybe the easiest way would be to close that PR, and re-open a new one 😉

src/datepicker/datepicker-month-view.ts Show resolved Hide resolved
@qub1t
Copy link
Contributor Author

qub1t commented Sep 10, 2019

@benouat closed PR and created new one ^^
#3361

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

Successfully merging this pull request may close these issues.

None yet

3 participants