downshift icon indicating copy to clipboard operation
downshift copied to clipboard

Aria 1.2 support for useSelect

Open tu4mo opened this issue 2 years ago • 5 comments

Migrate useSelect from 1.1 to 1.2 ARIA pattern.

tu4mo avatar Mar 07 '22 15:03 tu4mo

What component/hook are we talking about?

silviuaavram avatar Mar 07 '22 15:03 silviuaavram

Are you talking about https://www.w3.org/TR/wai-aria-practices-1.2/examples/combobox/combobox-select-only.html ?

silviuaavram avatar Mar 07 '22 15:03 silviuaavram

It's an issue with both useSelect and useCombobox (if you don't filter items). I'm mostly comparing with behavior of native select and other select libraries like react-select.

tu4mo avatar Mar 07 '22 15:03 tu4mo

The reason for this behaviour is that we currently follow https://www.w3.org/TR/wai-aria-practices-1.2/examples/listbox/listbox-collapsible.html. We should update our hooks to reflect this. I will keep this issue open to track it.

silviuaavram avatar Mar 07 '22 15:03 silviuaavram

The new spec seems to shed some light on #935, too!

tpict avatar May 12 '22 14:05 tpict