survey-library icon indicating copy to clipboard operation
survey-library copied to clipboard

Checkboxes - Accessibility Issue - Ensures role attribute has an appropriate value for the element (fieldset)

Open JaneSjs opened this issue 2 years ago • 1 comments

User Issue: T15286 - Accessibility test https://surveyjs.answerdesk.io/internal/ticket/details/T15286


Enable the Accessibility Insights for Web and Run the Fast Pass check over a Checkboxes question. The following issue appears: image

Refer to the details below:


Title: ,WCAG 1.3.1,WCAG 4.1.2,Best Practice: Ensures role attribute has an appropriate value for the element (fieldset) Tags: Accessibility, , WCAG 1.3.1, WCAG 4.1.2, Best Practice, aria-allowed-role

Issue: Ensures role attribute has an appropriate value for the element (aria-allowed-role - https://dequeuniversity.com/rules/axe/4.7/aria-allowed-role?application=msftAI)

Target application: https://surveyjs.io/form-library/examples/s/create-checkboxes-question-in-javascript/reactjs/default

Element path: fieldset

Snippet:

How to fix: Fix any of the following: ARIA role listbox is not allowed for given element

Environment: Chrome version 118.0.0.0

====

This accessibility issue was found using Accessibility Insights for Web 2.40.0 (axe-core 4.7.2), a tool that helps find and fix accessibility issues. Get more information & download this tool at http://aka.ms/AccessibilityInsights.

JaneSjs avatar Oct 30 '23 15:10 JaneSjs

This issue is a minor one (minor by accessibility tool classification). It doesn't affect screen reader and doesn't create any inconvinienses for disabled people. Right now due to current markup specifics there is no an easy way to fix it. We'll keep this issue open as a "known one" and return to it during future improvements.

tsv2013 avatar Oct 31 '23 07:10 tsv2013