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

Accessiblity problem introduced on new site's code editors #666

Open
calebfoss opened this issue Dec 21, 2024 · 0 comments
Open

Accessiblity problem introduced on new site's code editors #666

calebfoss opened this issue Dec 21, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@calebfoss
Copy link
Contributor

Most appropriate sections of the p5.js website?

Examples

What is your operating system?

Windows

Web browser and version

No response

Actual Behavior

Code editors on the Examples and Reference pages trap keyboard navigation, breaking WCAG Success Criterion 2.1.2: No Keyboard Trap.

This obstructs people with disabilities who navigate web pages using tab.

Expected Behavior

The site supports keyboard navigation, following basic accessibility standards.

This problem can be solved by setting the indentWithTab prop to false on the CodeMirror React component.

If you still want to allow site visitors to insert tabs into code, there are a few ways to do so. CodeMirror, the tool the new site uses, includes documentation on handling tab in an accessible way. This issue was solved on the old site by @katlich112358 by using shift+space to insert tabs into code instead of the tab key.

I urge the maintainers to run an accessibility audit on the new site to catch issues like this.

Steps to reproduce

No response

Would you like to work on the issue?

Yes

@calebfoss calebfoss added the Bug Something isn't working label Dec 21, 2024
This was referenced Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant