Skip to content
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

Listbox: should unselected single-select options include aria-selected=false? #1474

Open
craigkovatch opened this issue Jul 29, 2020 · 0 comments

Comments

@craigkovatch
Copy link

craigkovatch commented Jul 29, 2020

The current practices doc says:

  • In a single-select listbox, the selected option has aria-selected set to true.
  • if the listbox supports multiple selection:
    • The element with role listbox has aria-multiselectable set to true.
    • All selected options have aria-selected set to true.
    • All options that are not selected have aria-selected set to false.

I have interpreted this to imply that unselected options in a single-select listbox should have no value for aria-selected, vs multi-select listboxes where all options are expected to have a value, be it true or false.

Is this correct? Either way, it would be good to make this explicit in this document, as the current phrasing leaves this up to interpretation.

@craigkovatch craigkovatch changed the title Listbox: should unselected single-select items include aria-selected=false? Listbox: should unselected single-select options include aria-selected=false? Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant