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

remediate wcag 2.1.2 - no keyboard trap #748

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

tonyfast
Copy link
Contributor

hey y'all, i figured i'd kick off this discussion with a pull request instead of an issue. i'm proposing to add support for the Esc. currently, thebe violates Success Criterion 2.1.2 (No Keyboard Trap). this pull request applies technique G21: Ensuring that users are not trapped in content so that when Esc is pressed we use cm.display.input.blur() to remove focus from the editor allowing keyboard users to continue through their natural tab order.

i'm not really great at js development or testing so i'd appreciate any pointers to cleaning up the pr.

Copy link

welcome bot commented May 21, 2024

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out EBP's Code of Conduct and our Contributing Guide, as this will greatly help the review process.

Welcome to the EBP community! 🎉

Copy link
Collaborator

@stevejpurves stevejpurves left a comment

Choose a reason for hiding this comment

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

@tonyfast thanks for the PR. I just tested a rebased version of this branch locally and it works as expected. Esc gets me out of context.

I don't think there is anything to change here, other than adding a changeset and linting which I'll just do on main as a release is imminent.

@stevejpurves stevejpurves merged commit a53ad0f into jupyter-book:main Jun 11, 2024
2 of 4 checks passed
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