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

Dropdown does not take focus when opens w/ iOS + VO #764

Closed
jnurthen opened this issue Jul 15, 2020 · 3 comments · Fixed by #905
Closed

Dropdown does not take focus when opens w/ iOS + VO #764

jnurthen opened this issue Jul 15, 2020 · 3 comments · Fixed by #905
Labels
a11y Issues related to accessibility

Comments

@jnurthen
Copy link
Member

Expected Behaviour

opening the dropdown with iOS & VO focus should move to the dropdown entries.

Actual Behaviour

Focus remains on the trigger when the dropdown opens. swiping right moves to the next element in the page not the dropdown entries

Reproduce Scenario (including but not limited to)

https://opensource.adobe.com/spectrum-web-components/components/dropdown/examples

Steps to Reproduce

Platform and Version

iPadOS14 - Safari - VO
iOS13 - Safari - VO

Sample Code that illustrates the problem

Logs taken while reproducing problem

@Westbrook Westbrook added the a11y Issues related to accessibility label Jul 16, 2020
@Westbrook
Copy link
Contributor

I've confirmed this locally. We'll need to track down what event/interaction is being triggered by the "double-tap" interaction and ensure that it also throws focus for this and for other "replace" type overlays.

@Westbrook
Copy link
Contributor

Westbrook commented Aug 3, 2020

Is this a timing situation? May be a non-rendering delay while constructing the accessibility tree? Or the fade in animation handling in Spectrum CSS.

@Westbrook
Copy link
Contributor

Spent a bunch of time this week reviewing the issues here, and learned a lot about the intricacies of this interaction.

Findings:

  • role values + focus not enough to associate the UI elements together
  • consume/apply IDs for each item
  • focus the listbox not the individual items
  • synthesize item focus with JS
  • manage aria-activedecendant and aria-selected
  • translate listbox click to click on "active" item

The changes cross a handful of elements, but should be well within reach for correcting this issue (which occurs across all VO contexts).

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

Successfully merging a pull request may close this issue.

2 participants