Skip to content

jsx-a11y/control-has-associated-label not recognizing aria-hidden #635

Closed
@ghost

Description

Hey!

When I add aria-hidden="true" to the element I would expect this rule to ignore this particular control element. It seems not be the case.

Example

// rule config

'jsx-a11y/label-has-associated-control': [
  'error',
  {
    assert: 'either',
  }
],

<input type="hidden" aria-hidden="true" />

This fails.

Thanks!

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