Skip to content

Rule idea: aria-widget-keyboard-focusable #3197

@WilcoFiers

Description

@WilcoFiers

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or enhancementrulesIssue or false result from an axe-core rule

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions