ashleemboyer / a11y-components-og

The purpose of this repository is to share what I've learned about creating accessible React components. It is not currently open source, but might be at some point in the future.
17 stars 0 forks source link

[Listbox] Add keyboard navigation to Listbox #5

Open ashleemboyer opened 4 years ago

ashleemboyer commented 4 years ago

What's the problem?

The new Listbox component needs to work with a keyboard. I'll comb the WAI-ARIA docs and note all the requirements in the next section.

TODO

Note: these requirements are for the single-select, vertically arranged listbox. Multi-select and horizontally arranged options may come later.

When the Listbox receives focus

Down, Up, Home, & End With each of these keys, selection follows focus.

Type ahead

ashleemboyer commented 4 years ago

[Listbox] Keyboard navigation