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

Mobile VO does't synchronize DOM focus and virtual cursor #130

Closed
jessegreenberg opened this issue Feb 11, 2019 · 5 comments
Closed

Mobile VO does't synchronize DOM focus and virtual cursor #130

jessegreenberg opened this issue Feb 11, 2019 · 5 comments

Comments

@jessegreenberg
Copy link
Contributor

I just noticed that recent versions of mobile VO don't synchronize DOM focus with the virtual cursor. And I could not find any device settings to change this in accessibility or Safari settings. I couldn't find anything about this in online searches either. This isn't the case for iPad2 with iOS 9.3, but is for iPad Pro with iOS 12.

This means that we generally don't get any focus events with mobile VoiceOver. So we don't see any of our pink focus highlights on this platform, and won't get any special behavior we add to the focus event (like reading an alert when focus lands on something).

The good news is that since PDOM elements are positioned correctly, the black VO focus highlight correctly surrounds sim elements instead of our pink focus highlight.

But this may still create design constraints for us. It would be good to discuss this constraint with the a11y team.

@jessegreenberg
Copy link
Contributor Author

and won't get any special behavior we add to the focus event (like reading an alert when focus lands on something).

Maybe we should add documentation in "How to instrument a sim with a11y" documents that describe this problem and recommend to generally not add listeners to focus and use aria-describedby instead of aria-live (utteranceQueue) when focus changes?

@jessegreenberg
Copy link
Contributor Author

jessegreenberg commented Feb 11, 2019

recommend to generally not add listeners to focus

This is really unfortunate. Should we send a bug report to Apple?

@jessegreenberg
Copy link
Contributor Author

We get focus events correctly if we call element.focus(). We just don't get them when reading through content with the virtual cursor. Maybe that isn't so bad.

@jessegreenberg
Copy link
Contributor Author

After discussing with @emily-phet, an immediate next step is to send a bug report/feature request to apple. This isn't an immediate issue but will be a problem when working on sims with a black background (like molecules-and-light and coulombs-law) because the VoiceOver highlight is black.

@jessegreenberg
Copy link
Contributor Author

Duplicate now of #138, closing.

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

No branches or pull requests

1 participant