amplify-ui
amplify-ui copied to clipboard
Autocomplete field hides label by default
Before creating a new issue, please confirm:
- [X] I have searched for duplicate or closed issues and discussions.
- [X] I have tried disabling all browser extensions or using a different browser
- [X] I have tried deleting the node_modules folder and reinstalling my dependencies
- [X] I have read the guide for submitting bug reports.
On which framework/platform are you having an issue?
React
Which UI component?
Other
How is your app built?
Create React App
What browsers are you seeing the problem on?
Chrome
Which region are you seeing the problem in?
No response
Please describe your bug.
The autocomplete field component hides its label by default. This behavior appears is different from the other field components in the library, and the accompanying documentation reads as if it should be shown by default, citing accessibility as justification for this pattern, describing hiding the label as situationally desirable, and providing additional accessibility recommendations when going that route.
What's the expected behaviour?
Expected behavior is that the label is displayed by default
Help us reproduce the bug!
This can be reproduced by viewing the samples on the Amplify UI docs site. https://ui.docs.amplify.aws/react/components/autocomplete#usage
Code Snippet
// Put your code below this line.
Console log output
No response
Additional information and screenshots
No response