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

[Data Sharing] Focus set on input control on view load #51

Closed
svinkle opened this issue May 27, 2020 · 0 comments · Fixed by #55
Closed

[Data Sharing] Focus set on input control on view load #51

svinkle opened this issue May 27, 2020 · 0 comments · Fixed by #55

Comments

@svinkle
Copy link
Member

svinkle commented May 27, 2020

Issue summary

On Share Code view load, focus is sent to the Code input control via autofocus prop. This interferes with the natural focus order of the view content. As a result, the virtual keyboard opens and focus is sent to the 1 key. This may cause confusion or frustration for voice dictation or screen reader users who need to navigate backward to gain context of the current view.

Screenshots

autofocus

Steps to reproduce

  1. Load the app in the iOS simulator.
  2. Open the Sheet view.
  3. Enable VoiceOver screen reader on macOS
  4. Use the Virtual Cursor to navigate to and activate the "Share code" control (Ctrl + Opt + Space)

Behavior

Expected

  • Focus to shift to the view header.

Actual

  • Focus shifts to the input control.

Recommendation

Remove the autofocus attribute on the input control. Allow focus to shift to the header per #12.

Specifications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants