Martin
Martin

Reputation: 1419

How should I ARIA-decorate my control?

I have a control that's almost exactly the same as one at this site: http://harvesthq.github.io/chosen. Specifically, the "Multiple Select" control under the "Selected and Disabled Support" section.

I can't work out what ARIA roles to use with it. It's kind of a listbox in its function, but you can't move up and down the list, using space to select things. It's also not a combobox because you can't type in arbitrary new values (although that might come later).

Would welcome some help with this, as I'm keen to make it as accessible as possible.

Upvotes: 0

Views: 33

Answers (1)

Ryan B
Ryan B

Reputation: 3392

A quick look would be:

  • the main box would need to be a listbox
  • the elements within that need to be option
  • aria-haspopup="true" needs to be added when the drop down appears I think.
  • aria-multiselecta1ble="true" needs to be set

Upvotes: 1

Related Questions