Skip to content

Toolkit not flagging "Luttons" #67

@douga11y

Description

@douga11y

Describe the bug

ARC Toolkit isn't flagging any failures related to buttons nested inside links. It does flag the inverse as a 4.1.2 failure with the following details:

Focusable element found with presentational children.
Description: A focusable element was found within an ARIA role that defines its children as presentational.

To Reproduce

Run an automated scan on one this markup example:

<a href="#">
  <button>test</button>
</a>

Expected behavior

I would expect a similar 4.1.2 flag for buttons inside of links since it has similar compatibility issues with AT calculating a11y properties. Though since links do allow non-presentational children, it would probably need a different description than the one quoted above.

Version information

  • Browser and version: Chrome Version 130.0.6723.70 (Official Build) (x86_64)
  • ARC Toolkit version: 5.7.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions