-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
baophucct/codesandboxer
#1Labels
category/accessibilityIssues or PRs related to accessibilityIssues or PRs related to accessibilityissue/reviewedIssue has recently been reviewed (mid-2020)Issue has recently been reviewed (mid-2020)
Description
When running the Axe accessibility tester against the react-select v2 code-sandbox, two critical issues are identified:
- Form elements must have labels. While you can pass
aria-labelas a prop to theSelectcomponent, it is not assigned as an attribute to the#react-select-2-inputHTML element. Adding this attribute satisfies the Axe tester. - Certain ARIA roles must be contained by particular parents. Each
.select__optionhasrole="option"; however, the parent div.select__menu-listdoes not haverole="listbox". Adding this attribute satisfies the Axe tester. Note that I had to use React Developer Tools to setmenuIsOpenon theStateManagerto see this violation.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
category/accessibilityIssues or PRs related to accessibilityIssues or PRs related to accessibilityissue/reviewedIssue has recently been reviewed (mid-2020)Issue has recently been reviewed (mid-2020)
