Skip to content

Input label on grouped fields #3977

Discussion options

You must be logged in to vote

Hi @hellojesswatson Paste bot is correct, for accessibility reasons, we always recommend that all input fields have individual labels. In the examples you shared, it doesn't seem to affect the design at first glance, but is there any specific reason why you wouldn't include the labels?

If for some reason the designs prevent that, you could give each input an aria-label prop that takes a string description of the input, which will be read aloud by assistive technologies. This solution isn't ideal for sighted users, so if you decide to go that route, the relationship between fields needs to be very clear.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by roxanagomez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants