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

Fix: Removed select on focus behaviour allowed space and enter for selection #230

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

oliverfoster
Copy link
Member

@oliverfoster oliverfoster commented Jan 16, 2025

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

  • Remove select on focus
  • Allow both space and enter to toggle
  • Deprecated onKeyPress for onKeyDown

@swashbuck
Copy link

swashbuck commented Jan 16, 2025

@oliverfoster The keyPress event is deprecated. Can you switch it to the keyDown event and rename the function?

onKeyPress={onKeyPress}

js/McqView.js Outdated Show resolved Hide resolved
Copy link

@swashbuck swashbuck left a 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

Copy link
Contributor

Choose a reason for hiding this comment

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

👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Reviewing
Development

Successfully merging this pull request may close these issues.

VoiceOver iOS: Moving focus automatically selects a radio
3 participants