ARIA Listbox

From Level Access Web Labs
Revision as of 11:29, 28 October 2019 by Rnickelson (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a single selection ARIA listbox

ARIA roles and properties used

  • aria-activedescendant, aria-postinset, aria-setsize, aria-labelledby
  • role listbox, presentation, and option

ARIA Listbox

Notes about ARIA listbox implementations copied from an email from Bryan on 11/16/2016:

  • Regarding the use of aria-acrivedescendant versus "roving tabindex": Both methods whether aria-activedescendant managed focus or roving tabindex are equally valid, so either will work if done properly. However, the roving tabindex model is more useful for backwards compatibility, working correctly going as far back as IE8 with JAWS 11.
  • The use of aria-posinset and aria-setsize is optional, but I do recommend that if one is used they both should be used.
  • Regarding aria-expanded on role=listbox, I’ve observed that this is often left as aria-expanded=’false’ which seems to prevent some screen readers from being able to announce referenced nodes when the arrow keys are used to update the aria-activedescendant attribute. It works best when this is not present.

  • JAWS works as expected in FireFox and Chrome. The Name role and currently selected value is announced in Forms mode and Virtual cursor mode. The posinset value is announced as expected in forms mode and virtual cursor mode.
  • NVDA Works as expected in FireFox. The Posinset value is not announced in Browse mode in FireFox. In chrome the currently selected value is not announced in Browse mode.
  • iOS Works as expected. The name Role and Currently selected value are announced. The posinset value is not announced.
  • TalkBack Chrome, Works as expected, the Name Role and currently selected value are announced. It is possible to determine that it is a list of three items but the posinset is not announced by TalkBack.