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

Accessibility fixes: keyboard navigation to city, and checkbox labels #351

Merged
merged 6 commits into from
Oct 25, 2024

Conversation

chriswilty
Copy link
Contributor

I noted that it isn't possible to navigate to single city view using keyboard (Enter key), which excludes all those who are unable to use mouse.

This PR addresses that, while also correcting another accessibility issue in which checkboxes were not associated with their label.

I have also tested these changes using NVDA screen reader, and they work as expected.

resolves #350

Ben-EJ
Ben-EJ previously approved these changes Oct 3, 2024
Copy link
Collaborator

@Ben-EJ Ben-EJ left a comment

Choose a reason for hiding this comment

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

LGTM

@chriswilty

This comment was marked as resolved.

@chriswilty

This comment was marked as resolved.

Copy link

github-actions bot commented Oct 21, 2024

Coverage report for air-quality-ui

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=90%, but got 65.23605150214593%

St.
Category Percentage Covered / Total
🟡 Statements
65.24% (+0.51% 🔼)
760/1165
🔴 Branches
49.71% (+0.14% 🔼)
174/350
🟡 Functions
62.5% (+0.43% 🔼)
165/264
🟡 Lines
64.37% (+0.53% 🔼)
701/1089

Test suite run success

364 tests passing in 28 suites.

Report generated by 🧪jest coverage report action from c639448

@chriswilty
Copy link
Contributor Author

Ok, that's looking healthy now.

Note I have used @testing-library/user-event in my updated tests here, as that is recommended over the fireEvent API.

@chriswilty

This comment was marked as outdated.

@sebsteinig
Copy link
Collaborator

Thank you so much for your work on this and updating the PR, Chris! This is hugely appreciated. I am merging and deploying the changes now. Please note, that we are also switching to a new production sever, so the updated UI will be available at http://136.156.139.13

@sebsteinig sebsteinig merged commit e7747ce into ECMWFCode4Earth:main Oct 25, 2024
7 checks passed
@chriswilty chriswilty deleted the keyboard-nav-fixes branch October 25, 2024 08:57
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.

City links not interactive via keyboard
3 participants