Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Accessibility] Checkboxes: Provided roles are invalid #8460

Closed
ParthaA11y opened this issue Jun 24, 2024 · 1 comment
Closed

[Accessibility] Checkboxes: Provided roles are invalid #8460

ParthaA11y opened this issue Jun 24, 2024 · 1 comment
Assignees
Labels
accessibility bug user issue An issue or bug reported by users
Milestone

Comments

@ParthaA11y
Copy link

ParthaA11y commented Jun 24, 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:
image

Screen recordings:

  1. JAWS without role=listbox and option: https://www.loom.com/share/9d1fa1574de044e19d26cc31cfd2e275?sid=e1f70162-5fdf-410d-b772-0b9dd7050cb3

  2. NVDA Without role=listbox and option: https://www.loom.com/share/f1548edd0574487eb712574e91fb6f86?sid=c8354f10-9227-4713-b1a5-6e9ae6258362

  3. NVDA with listbox and option: https://www.loom.com/share/bc99a8e085bf4a10ab7949b693bd6455?sid=af1910f8-203b-4ffc-b1f9-51acf82df6c5

  4. JAWS with listbox and option: https://www.loom.com/share/43fff5b629134010a45a21189c58e8c8?sid=8c555f4e-53bc-4f48-92b9-c639519517f5

@dmitry-kurmanov
Copy link
Member

dmitry-kurmanov commented Jun 25, 2024

@JaneSjs JaneSjs removed their assignment Jun 25, 2024
dmitry-kurmanov added a commit that referenced this issue Jun 25, 2024
dmitry-kurmanov added a commit that referenced this issue Jun 26, 2024
dmitry-kurmanov added a commit that referenced this issue Jun 27, 2024
@RomanTsukanov RomanTsukanov changed the title Questions with checkboxes - Roles provided for the checkboxes are not valid Checkboxes: Provided roles are invalid Jul 2, 2024
@RomanTsukanov RomanTsukanov changed the title Checkboxes: Provided roles are invalid [Accessibility] Checkboxes: Provided roles are invalid Jul 2, 2024
@OlgaLarina OlgaLarina added this to the v1.11.5 milestone Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility bug user issue An issue or bug reported by users
Projects
None yet
Development

No branches or pull requests

5 participants