-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[BUG] - Accessible label for Input component is duplicated #5150
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
Comments
This issue originally came up when I was trying to select the input with a I have identified that the input is rendered with |
I found that if I believe that passing both There is this part of |
Ok, I figured it out.
The object with Both element's It seems wrong even though the tests indicate that this behaviour is intentional. I'll create an issue there at react-spectrum to get clarification on whether this is indeed intentional. |
Started a discussion on the |
HeroUI Version
2.7.5
Describe the bug
The accessible label for
<Input label="Email" />
resolves as "Email Email".Your Example Website or App
https://www.heroui.com/docs/components/input#usage
Steps to Reproduce the Bug or Issue
2.1. Using your browser's dev tools, inspect the accessible label of one of the inputs.
2.2. Using the screen reader, read out the label of one of the inputs.
Expected behavior
As a user, I don't expect the label to be duplicated when interacting with the element when using assistive technologies.
Screenshots or Videos
Firefox dev tools:


Voiceover:
Operating System Version
macOS
Browser
Firefox
The text was updated successfully, but these errors were encountered: