Skip to content

Accessibility of input fields #3589

Answered by TwilioPasteBot
mma1504 asked this question in General
Discussion options

You must be logged in to vote

Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary.


Yes, you're correct. According to the Paste design system guidelines, each form field should have its own label. This is important for accessibility as it helps screen readers and other assistive technologies understand the purpose of each field.

In your suggested construction, you've separated the two inputs with their own labels which is a more accessible approach. Here's how it aligns with the guidelines:

  • You've included a visible label on all form fields.
  • Each label uses the htmlFor prop that equals the id of the associated input.

Replies: 1 comment

Comment options

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