You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and role=option is used for the input field with type=checkbox. As a result Assistive technology such as screen reader does not recognize the correct role and the state of the checkbox and does not read them as checkbox. Also, JAWS is providing instruction to use arrow key to navigate but using arrow key is not working in this case.
A listbox and option are used in the dropdown or combo boxes. Listbox example
Expectation: On focus screen reader should read the accessible name, valid role and current state of the element. For the checkbox screen reader should read the role as checkbox and current state as checked or not checked, so that a user can understand the functionality and keyboard interaction of the checkbox.
Code snippet:
How to fix: Please remove the role=listbox from the fieldset and role=option from the inputs.
RomanTsukanov
changed the title
Questions with checkboxes - Roles provided for the checkboxes are not valid
Checkboxes: Provided roles are invalid
Jul 2, 2024
RomanTsukanov
changed the title
Checkboxes: Provided roles are invalid
[Accessibility] Checkboxes: Provided roles are invalid
Jul 2, 2024
Original Issue: Accessibility issue - SurveyJS Player.
Title: When Aria attributes are not used correctly assistive technology may not correctly function as expected.
URL: https://surveyjs.io/form-library/examples/nps-question/reactjs
Issue:
Role=listbox is used in the
and role=option is used for the input field with type=checkbox. As a result Assistive technology such as screen reader does not recognize the correct role and the state of the checkbox and does not read them as checkbox. Also, JAWS is providing instruction to use arrow key to navigate but using arrow key is not working in this case.A listbox and option are used in the dropdown or combo boxes.
Listbox example
Expectation: On focus screen reader should read the accessible name, valid role and current state of the element. For the checkbox screen reader should read the role as checkbox and current state as checked or not checked, so that a user can understand the functionality and keyboard interaction of the checkbox.
Code snippet:
How to fix: Please remove the role=listbox from the fieldset and role=option from the inputs.
Tools used: Screen reader JAWS, NVDA.
Success criteria: WCAG 4.1.2: Name role and value
https://www.w3.org/WAI/WCAG21/Techniques/general/G108
https://www.w3.org/WAI/WCAG21/Techniques/aria/ARIA4
Screenshot:
Screen recordings:
JAWS without role=listbox and option: https://www.loom.com/share/9d1fa1574de044e19d26cc31cfd2e275?sid=e1f70162-5fdf-410d-b772-0b9dd7050cb3
NVDA Without role=listbox and option: https://www.loom.com/share/f1548edd0574487eb712574e91fb6f86?sid=c8354f10-9227-4713-b1a5-6e9ae6258362
NVDA with listbox and option: https://www.loom.com/share/bc99a8e085bf4a10ab7949b693bd6455?sid=af1910f8-203b-4ffc-b1f9-51acf82df6c5
JAWS with listbox and option: https://www.loom.com/share/43fff5b629134010a45a21189c58e8c8?sid=8c555f4e-53bc-4f48-92b9-c639519517f5
The text was updated successfully, but these errors were encountered: