-
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-label
as a prop to theSelect
component, it is not assigned as an attribute to the#react-select-2-input
HTML element. Adding this attribute satisfies the Axe tester. - Certain ARIA roles must be contained by particular parents. Each
.select__option
hasrole="option"
; however, the parent div.select__menu-list
does not haverole="listbox"
. Adding this attribute satisfies the Axe tester. Note that I had to use React Developer Tools to setmenuIsOpen
on theStateManager
to see this violation.
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)