question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Combobox] Accessible virtual list example

See original GitHub issue

I’d love to see an example where many ComboboxOptions are rendered within react-window or another virtual-list implementation. One of the problems of solely using such libraries is that all the a11y benefits from @reach/combobox are lost, oftentimes leaving developers to choose between performance and accessibility. It’d be great to see an example that combines the best of both worlds! 😍

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
etcommented, Jul 11, 2020

@CodingDive - I wired up an example here: https://codesandbox.io/s/epic-meninsky-csvqc?file=/src/App.tsx I’m a rookie when it comes to accessibility but I have to imagine that a 50,000 item list will never be considered accessibly-friendly 😬

@chancestrickland - Check out that example if you have a chance. As you can see, I can had to hack the ref options to programmatically close the popover. It’d be nice if there was a friendlier way to do that.

1reaction
chaancecommented, Mar 14, 2020

If it’s a huge list I’d still probably recommend paginating options vs. a virtual list from a UX perspective, but unfortunately I don’t get to design everyone’s components 😅 I’ll have to slap a help-wanted tag for now as I’m just not familiar enough with virtual lists to know what this would look like myself. If you or someone wants to submit a PR, I’ll review the work, make sure screen reader response works as expected, and seek some feedback from accessibility folks who may be more familiar with the pattern than myself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating an accessible autocomplete experience
In this post we'll take a deeper look into some of the challenges we faced when building an accessible and mobile friendly ComboBox....
Read more >
Editable Combobox With List Autocomplete Example
This example illustrates the autocomplete behavior known as list autocomplete with manual selection. If the user types one or more characters in the...
Read more >
How to Virtual Scrolling in JavaScript ComboBox control
Using the scroll event, get the data and generate the list add to popup using the addItem method. Refer to the following code...
Read more >
Test: DRAFT ARIA 1.2 Editable Combobox With List ...
Strength of this expectation for different types of assistive technologies: Screen Readers: MUST; Voice Control: NA. Examples: When navigating to an element ...
Read more >
Add a list box or combo box - Microsoft Support
Note: In a combo box, the first visible column is displayed in the text box portion of the combo box when the list...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found