[Combobox] Accessible virtual list example
See original GitHub issueI’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:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.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.