dequelabs / dequelabs/axe-core
Rule idea: aria-widget-keyboard-focusable
- Dominant language
- JavaScript
- Stars
- 7.5k
- Forks
- 933
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 29
Description
### Applicability
Any element with an explicit role that inherits from "widget", except if any of the following are true:
- The widget has the disabled state (`aria-disabled` or `disabled`); or
- The widget is hidden from the accessibility tree; or
- The element is visually hidden.
### Expectation
Any of the following is true:
- **check 1**: The element is focusable
- **Check 2**: The element is a descendant of a (focusable element which has a role that is not null, presentation, or none).
- **Check 3**: The element is referenced with aria-controls from another element
### Assumptions
This rule does assume the component isn't an alternative control, such as a date picker button, that is an alternative for entering the date in a form field.
Contributor guide
Assessment
This issue has not been assessed yet.