Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

🐛 "An input component must either have a 'aria-label' attribute..." error when a <label> is present.  #1229

@tjosepo

Description

Describe the bug

Input elements log an error about accessibility when aria-label, aria-labelledby and placeholder are missing.

There is no check for <label> elements, which makes some accessible inputs still log an error.

Steps to reproduce

Create an element with this return:

<>
    <Label htmlFor="test">Label</Label>
    <TextInput id="test" />
</>

Expected results

There should be no errors. The text input has an accessible label.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions