31 lines
1.4 KiB
Plaintext
31 lines
1.4 KiB
Plaintext
![]() |
:doctype: book
|
||
|
|
||
|
# tag::header[]
|
||
|
|
||
|
== Why is this an issue?
|
||
|
|
||
|
include::../../../shared_content/jsts/aria-intro-1.adoc[]
|
||
|
|
||
|
The `aria-activedescendant` attribute is used to enhance the accessibility of composite widgets by managing focus within them. It allows a parent element to retain active document focus while indicating which of its child elements has secondary focus. This attribute is particularly useful in interactive components like search typeahead select lists, where the user can navigate through a list of options while continuing to type in the input field.
|
||
|
|
||
|
This rule checks that DOM elements with the `aria-activedescendant` property either have an inherent tabIndex or declare one.
|
||
|
|
||
|
# end::header[]
|
||
|
|
||
|
# tag::footer[]
|
||
|
|
||
|
== Resources
|
||
|
=== Documentation
|
||
|
|
||
|
* MDN web docs - https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques[Using ARIA: Roles, states, and properties]
|
||
|
* MDN web docs - https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles[ARIA roles (Reference)]
|
||
|
* MDN web docs - https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-activedescendant[`aria-activedescendant` attribute]
|
||
|
* MDN web docs - https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex[`tabIndex` attribute]
|
||
|
|
||
|
=== Standards
|
||
|
|
||
|
* W3C - https://www.w3.org/TR/wai-aria-1.2/[Accessible Rich Internet Applications (WAI-ARIA) 1.2]
|
||
|
* W3C - https://www.w3.org/TR/wai-aria/#composite[Composite role]
|
||
|
|
||
|
# end::footer[]
|