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

Screenreader fails to navigate occluded elements #353

Open
matthew-robertson opened this issue Feb 9, 2022 · 1 comment
Open

Screenreader fails to navigate occluded elements #353

matthew-robertson opened this issue Feb 9, 2022 · 1 comment

Comments

@matthew-robertson
Copy link

matthew-robertson commented Feb 9, 2022

I guess I should preface this with the fact that I only use a screenreader at work when testing accessibility, so I may just be missing a setting in OSX's VoiceOver.

I believe this is the issue originally mentioned in this prior issue, but is (I think) unrelated to tables. What appears to be happening is that as I navigate down, the window of unoccluded options is updated, but VoiceOver's focus remains on the Xth element rather than updating to that item's new index. This is seemingly confirmed by using VoiceOver to navigate to a specific element, scrolling past it, and then navigating to the next element. This explains why it seems to work, then skips, then gets stuck.

Notably, this demo from the docs doesn't seem to scroll incorrectly, and I have no idea why. The docs seem to be rather out of date, which may have something to do with it? That, or maybe something to do with how infinite scroll is managed.

Here's a gif of what's happening:
vertical_collection

And here's the minimal ember template (t is just styled to have a max height and hide-overflow) that generated the above gif:

<ul role="listbox" class="t">
  <VerticalCollection @items={{this.countries}} @estimateHeight=41 @bufferSize=2 as |opt index|>
    <li>{{opt}}</li>
  </VerticalCollection>
</ul>
@amk221
Copy link

amk221 commented Nov 14, 2024

I think I'm experiencing this issue but not with a screen reader. I am using element.scrollIntoView() on the item as I navigate down using the keyboard arrow keys.

But, unlike when scrolling normally, no more occluded items reveal themselves.

Here's a failing test

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

2 participants