-
-
Notifications
You must be signed in to change notification settings - Fork 784
Button with role="switch" pronounced as checkbox. #11310
Copy link
Copy link
Closed
Labels
ARIA/1.2Meeting the W3C Aria 1.2 specMeeting the W3C Aria 1.2 specblockedblocked/needs-product-decisionA product decision needs to be made. Decisions about NVDA UX or supported use-cases.A product decision needs to be made. Decisions about NVDA UX or supported use-cases.component/speech
Milestone
Metadata
Metadata
Assignees
Labels
ARIA/1.2Meeting the W3C Aria 1.2 specMeeting the W3C Aria 1.2 specblockedblocked/needs-product-decisionA product decision needs to be made. Decisions about NVDA UX or supported use-cases.A product decision needs to be made. Decisions about NVDA UX or supported use-cases.component/speech
Type
Fields
Give feedbackNo fields configured for issues without a type.
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.