-
Notifications
You must be signed in to change notification settings - Fork 41
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: Removed select on focus behaviour allowed space and enter for selection #230
Conversation
@oliverfoster The adapt-contrib-mcq/templates/mcq.jsx Line 72 in 13ca7d2
|
Co-authored-by: Brad Simpson <brad.simpson@kineo.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Tested iPhone 13 with VoiceOver iOS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works as expected for single select (radio) MCQs however multi select (checkbox) MCQs no longer allow you to toggle selection with space. Enter works fine.
When pressing space, the previous selection is unchecked but the focused item isn't checked. You get an intermittent flash of a selection.
Testing with Safari on Mac.
Cool, thanks @kirsty-hames |
Space was triggering both a keydown and change event on the checkbox. I've got the keydown to prevent default so that the change event doesn't trigger in that eventuality. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @oliverfoster - both space and enter toggle selection 👍
🎉 This PR is included in version 7.5.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
fixes #229
This should fix ios voiceover selection issues on radio (single select) mcqs and gmcqs
Reference: https://www.w3.org/WAI/ARIA/apg/patterns/radio/
Fix