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

CDC COVID-19 - Feature: Use label element to associate text with form element #15

Open
AccessForAll opened this issue Apr 29, 2020 · 0 comments
Labels
CDC COVID-19 Issues logged for the CDC COVID-19 site feature New feature or request

Comments

@AccessForAll
Copy link

Feature

Instead of using ARIA to associate text with a form element, use the label element so that it offers better accessibility for people with motor impairments, while still helping screen reader users.

Proposed

Users would be able to click on the label text to put their cursor in the Email Address box.

Reason

People with limited dexterity would have an easier time putting their cursor in the Email Address input box below the "Get email updates about COVID-19" text. People with motor impairments often struggle with putting their cursor in form elements. This would make it easier for people to click the text or the box to get their cursor in the box.

Suggested Code

Note the addition of the label elements with the for attribute associated with the input box's id attribute.

<p id="emailDescription"><label for"gov-d-email">Get email updates about COVID-19</label></p>

<input id="gov-d-email" title="Email Address" name="userID" type="email" class="form-control" placeholder="Email Address" required="required" aria-describedby="emailDescription" style="">

Additional References

@smhigley smhigley added CDC COVID-19 Issues logged for the CDC COVID-19 site feature New feature or request labels Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDC COVID-19 Issues logged for the CDC COVID-19 site feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
@AccessForAll @smhigley and others