Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aria Elements: Support for aria- prefixed Element reference attributes #627

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Apr 18, 2024

  1. References: Support for ID Ref List

    While it borrows from [targets][] and [outlets][], the idea of
    `ariaElements` also draws inspiration from the The [ARIAMixin][]
    introduced in the ARIA 1.3 specification and the [WAI ARIA concept of an
    [ID Ref and ID Ref List][aria-ref] attribute, like:
    
    * [aria-activedescendant](https://www.w3.org/TR/wai-aria-1.2/#aria-activedescendant)
    * [aria-controls](https://www.w3.org/TR/wai-aria-1.2/#aria-controls)
    * [aria-describedby](https://www.w3.org/TR/wai-aria-1.2/#aria-describedby)
    * [aria-details](https://www.w3.org/TR/wai-aria-1.2/#aria-details)
    * [aria-errormessage](https://www.w3.org/TR/wai-aria-1.2/#aria-errormessage)
    * [aria-flowto](https://www.w3.org/TR/wai-aria-1.2/#aria-flowto)
    * [aria-labelledby](https://www.w3.org/TR/wai-aria-1.2/#aria-labelledby)
    * [aria-owns](https://www.w3.org/TR/wai-aria-1.2/#aria-owns)
    
    Providing built-in support from Stimulus for elements that a controller
    establishes an [`[id]`-based relationship][id-relationship] with through
    ARIA attributes could cultivate a virtuous cycle between assistive
    technologies (reliant on semantics and document-hierarchy driven
    relationships) and client-side feature development (reliant on
    low-friction DOM traversal and state change callbacks).
    
    [targets]: https://stimulus.hotwired.dev/reference/targets
    [outlets]: https://stimulus.hotwired.dev/reference/outlets
    [aria-ref]: https://www.w3.org/TR/wai-aria-1.2/#propcharacteristic_value
    [id-relationship]: https://www.w3.org/TR/wai-aria-1.2/#attrs_relationships
    
    [ARIAMixin]: https://w3c.github.io/aria/#ARIAMixin
    seanpdoyle committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    b3c175e View commit details
    Browse the repository at this point in the history