You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accessibility Bug Found: A form control does not have a corresponding label but has a placeholder.
Why It Matters: If a form control does not have a properly associated text label, the function or purpose of that form control may not be presented to screen reader users. Form labels also provide visible descriptions and larger clickable targets for form controls. Placeholders are read duplicately in screen reader technologies depending upon the screen reader program used.
How to Fix It: If a text label for a form control is visible, use the <label> element to associate it with its respective form control. If there is no visible label, either provide an associated label, add a descriptive title attribute to the form control, or reference the label(s) using aria-labelledby. Labels are not required for image, submit, reset, button, or hidden form controls. Do away with the placeholder and provide either a visible form label or an accessibly hidden form label.
I’m still fairly new to the app repository, but I’m in the process of going through the whole app.
There’s actually some other spots I noticed we’re missing labels as well, like adding a highlight. I think I might open an overarching issue for the places they’re missing.
Describe the bug
Accessibility Bug Found: A form control does not have a corresponding label but has a placeholder.
Why It Matters: If a form control does not have a properly associated text label, the function or purpose of that form control may not be presented to screen reader users. Form labels also provide visible descriptions and larger clickable targets for form controls. Placeholders are read duplicately in screen reader technologies depending upon the screen reader program used.
How to Fix It: If a text label for a form control is visible, use the
<label>
element to associate it with its respective form control. If there is no visible label, either provide an associated label, add a descriptivetitle
attribute to the form control, or reference the label(s) usingaria-labelledby
. Labels are not required for image, submit, reset, button, or hidden form controls. Do away with the placeholder and provide either a visible form label or an accessibly hidden form label.Success Criteria Affected:
Screenshot(s):
PR Available: see: https://github.com/colabottles/landing-page/tree/main/components/sections/home-page
Steps to reproduce
Browsers
Chrome, Firefox, Safari, Edge, Opera
Additional context (Is this in dev or production?)
Production
Code of Conduct
Contributing Docs
The text was updated successfully, but these errors were encountered: