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

Form Inputs must have associated labels #640

Closed
garyb1 opened this issue Nov 20, 2023 · 2 comments · Fixed by #641
Closed

Form Inputs must have associated labels #640

garyb1 opened this issue Nov 20, 2023 · 2 comments · Fixed by #641

Comments

@garyb1
Copy link
Contributor

garyb1 commented Nov 20, 2023

Context

All form inputs must have an associated labels. Visible on the sign up form for new users.

Expected Behaviour

Programmatically associate labels with all form controls - Deque.

Effective form labels are required to make forms accessible. The purpose of form elements such as checkboxes, radio buttons, input fields, etcetera, is often apparent to sighted users, even if the form element is not programmatically labeled. Screen readers users require useful form labels to identify form fields. Adding a label to all form elements eliminates ambiguity and contributes to a more accessible product.

When labels for form elements are absent, screen reader users do not know the input data expectations. Screen readers cannot programmatically determine information about input objects without an established label relationship (or redundant text serving as a label).

The absence of labels prevent fields from receiving focus when read by screen readers, and users with impaired motor control do not get the benefit of a larger clickable area for the control since clicking the label activates the control.

Current Behavior

What is the current behavior?

Clicking form labels does not focus on inputs.

Screenshots

Codu new user sign up form code example of textarea with no programtically associated labels

Steps to reproduce

Please provide detailed steps for reproducing the issue

  1. Inspect new user sign up form, and see form elements.
  2. OR Inspect with most automated a11y checkers like pa11y, axe devtools, or arc toolkit.
  3. OR Inspect with any screen reader.

Additional info

Provide any additional information here

Copy link

Hello @garyb1, thanks for opening your first issue! your contribution is valuable to us. The maintainers will review this issue and provide feedback as soon as possible.

@garyb1
Copy link
Contributor Author

garyb1 commented Nov 20, 2023

Will create a PR to address this as soon as possible.

garyb1 added a commit to garyb1/codu that referenced this issue Nov 20, 2023
NiallJoeMaher pushed a commit that referenced this issue Nov 21, 2023
* [Codú - #640] - Form Inputs must have associated labels

* [Codú - #640] - remove attribute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant