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 #2084

Merged
merged 10 commits into from
Jul 20, 2020
Merged

Add aria attributes #2084

merged 10 commits into from
Jul 20, 2020

Conversation

amanmahajan7
Copy link
Contributor

@amanmahajan7 amanmahajan7 commented Jul 15, 2020

https://www.w3.org/TR/wai-aria-practices/#grid_roles_states_props
https://www.w3.org/TR/wai-aria-practices/#gridAndTableProperties

This improves accessibility of the grid and can potential help with testing (we can use aria-roles/attributes) to find elements. We can further improve it by using aria-activedescendant https://www.w3.org/TR/wai-aria-practices/#kbd_focus_activedescendant

@amanmahajan7 amanmahajan7 self-assigned this Jul 15, 2020
@amanmahajan7 amanmahajan7 changed the title Add aria attributes and improve keyboard navigation Add aria attributes Jul 17, 2020
@amanmahajan7 amanmahajan7 marked this pull request as ready for review July 17, 2020 20:12
src/FilterRow.tsx Outdated Show resolved Hide resolved
Comment on lines 16 to 19
case 'NONE':
return 'none';
default:
return undefined;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
case 'NONE':
return 'none';
default:
return undefined;
default:
return 'none';

WDYT?

src/HeaderRow.tsx Outdated Show resolved Hide resolved
@amanmahajan7 amanmahajan7 merged commit ef17d49 into canary Jul 20, 2020
@amanmahajan7 amanmahajan7 deleted the am-aria branch July 20, 2020 14:21
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.

2 participants