-
Notifications
You must be signed in to change notification settings - Fork 344
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
Collapsible Dropdown Listbox Example #1412
Comments
This also applies to IE 11, Edge, Chrome and Firefox on Windows. I am in favor of adapting APG example
This does not apply to IE 11, Edge, Chrome and Firefox on Windows. On Windows the select element is opened with Alt+Arrow up or down. In Firefox, Edge and Chrome, Enter or Spacebar also works to open (not in IE 11), but not Arrow keys alone. Since Alt+Arrow keys, Enter and Spacebar work to open in the APG example, I don't see any problem in the current behavior. |
I've also confirmed this behaviour in Firefox, Opera & Safari on MacOS.
I've also confirmed this is the case in Firefox, Opera & Safari on MacOS. So it appears that the main difference is with the native Select is
Reading the APG, it does seem to favour the Windows approach by focusing an item in the listbox when it the listbox receives focus. However, the APG example, opens the dropdown and moves the selection. This doesn't replicate the native behaviour of Windows or MacOS; nor is this behaviour defined in the APG. |
Looks like this is a well documented issue: |
In case it's helpful, note that there is a new "Select-only combobox" being developed for APG in #1396 that is in the final stages of review. |
I have two questions regarding this example: https://www.w3.org/TR/wai-aria-practices/examples/listbox/listbox-collapsible.html
Printable Characters
are only respected when the dropdown is open. I couldn't find anywhere inhttps://www.w3.org/TR/wai-aria-practices/#listbox_kbd_interaction that states the dropdown must be open. It's also not explicitly listed in the example's keyboard table. The native HTML Select (Chrome, MacOS) allows you to change the selection using
Printable Characters
when the dropdown is closed. What is the correct behaviour and where can I find this in the WAI-ARIA Authoring Practices?IMO: I'd expect the
Printable Characters
to work when the dropdown either closed or open.IMO: I'd expect the arrow keys to move the selection if the dropdown is open. If it is closed, I'd expect them to open the dropdown and focus the current selection.
The text was updated successfully, but these errors were encountered: