Skip to content

Update role-has-required-aria-props to support config to treat SHOULD props as required #291

Open
@jessebeach

Description

@jessebeach

For instance, aria-selected is recommended as a prop for the tab role, but it has a default value and it isn't marked as required. The following two lines are functionally equivalent.

<div role="tab" />
<div role="tab" aria-selected="false" />

With configuration, we can allow authors to require an explicit definintion of a prop like aria-selected on a role tab.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions