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> 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.
When navigating to a
<button>withrole="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:
<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.