Skip to content

valid-aria-role does not allow lists of roles #5

@lencioni

Description

@lencioni

This rule considers the following JSX bad:

function Foo() {
  return <div role="tabpanel row" />;
}

However, according to role mapping:

WAI-ARIA allows multiple roles to be specified as an ordered set of space-separated valid role tokens. The additional roles are fallback roles similar to the concept of specifying multiple fonts in case the first choice font type is not supported.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions