Skip to content

role-supports-aria-props documentation page displays a non working sample of code #938

Open
@n-chardon

Description

@n-chardon

The following code is displayed as the "Good" example of role-supports-aria-props rule :

<ul role="radiogroup" aria-required aria-labelledby="foo">
    <li tabIndex="-1" role="radio" aria-checked="false">Rainbow Trout</li>
    <li tabIndex="-1" role="radio" aria-checked="false">Brook Trout</li>
    <li tabIndex="0" role="radio" aria-checked="true">Lake Trout</li>
</ul>

However, this code does not work as intended, because the aria-required attribute has a "false" default value: it should be written as aria-required="true" to work properly with assistive technology.

I would recommend that the documentation be updated with a working example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions