-
-
Notifications
You must be signed in to change notification settings - Fork 756
Description
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:
- Open https://codepen.io/erikkroes/pen/WNrOdWp in Chrome version 83.0.4103.116
- Navigate to the example
<button>withrole="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.