Skip to content

target-size rule should ignore nested interactive controls. #3674

@WilcoFiers

Description

@WilcoFiers

Spotted this beauty on a video streaming site:

  <a role="link" aria-label="play" tabindex="0" style="padding: 5px;">
    <button tabindex="-1">Play</button>
  </a>

This is failing the rule because the link is considered to be largely obscured by the button inside of it. I think the solution here is that when we check for obscuring elements that we exclude descendants of the widget.

Metadata

Metadata

Assignees

Labels

fixBug fixesprA pr has been created for the issuetarget-size

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions