nvda
aade3d6f - Fix reporting of ARIA role="switch" in Firefox and Chrome. (#10782)

Commit
6 years ago
Fix reporting of ARIA role="switch" in Firefox and Chrome. (#10782) The spec maps role="switch" to IA2_ROLE_TOGGLE_BUTTON. However, it also says that aria-checked should be used for switch, not aria-pressed, and aria-checked is mapped to the checked state. Firefox does exactly as specified, resulting in NVDA reporting weirdness like "toggle button not pressed checked". Chrome exposes both checked and pressed, resulting in NVDA reporting weirdness like "toggle button checked pressed". Since the spec says that a switch is "a type of checkbox", resolve this mess by mapping switch to check box and killing the pressed state.
Author
Parents
Loading