Skip to content

Button with role="switch" pronounced as checkbox. #11310

Description

@erikkroes

When navigating to a <button> with role="switch", it will be pronounced as a checkbox. It is recognized as a toggle button or switch button by accessibility APIs for example, but it is not pronounced as such.
https://www.w3.org/TR/wai-aria-1.2/#switch does state "A type of checkbox that represents on/off values", but it is not a checkbox and has a seperate role. I think it should be pronounced differently.
https://www.w3.org/TR/wai-aria-1.1/#switch does mention "Role: ROLE_SYSTEM_CHECKBUTTON" which might be the cause, but it also states "Object Attribute: xml-roles:switch" which hopefully means thiscan be fixed.

Steps to reproduce:

  1. Open https://codepen.io/erikkroes/pen/WNrOdWp in Chrome version 83.0.4103.116
  2. Navigate to the example <button> with role="switch"

Actual behavior:

Button is announced as "Checkbox".

Expected behavior:

Button is announced as "Switch", or something alike.

System configuration

NVDA 2020.1 installed on Parallels. Chrome version 83. Windows 10.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions