Skip to content

Add context to no-noninteractive-tabindex on when this might be valid #717

Closed
@backwardok

Description

@backwardok

There's a use case for adding tabindex="0" to a generic container (like a <div>) to add keyboard accessibility to a scrollable container. Without the tabindex attribute, if the scrollable container doesn't contain any interactive elements, you won't be able to scroll that content with a keyboard.

Since there's no role associated with this, there isn't really anything to key off of to determine that this shouldn't be checked. The only current workaround for this is to disable the rule for that line.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions