Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tjosepo opened this issue Sep 5, 2023 · 0 comments
Labels

Comments

@tjosepo
Copy link
Member

tjosepo commented Sep 5, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant