Skip to content

USWDS: Add autocomplete attribute to email inputs #6002

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

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

amyleadem
Copy link
Contributor

@amyleadem amyleadem commented Jul 31, 2024

Summary

Added the autocomplete="email" attribute to the email input element in both the big footer and the "Create an account" template. This attribute allows the components to meet the standards outlined in WCAG 1.3.5.

Breaking change

This is not a breaking change.
This is a markup change.

Related issue

Closes #6001

Related pull requests

Changelog PR

Preview link

Problem statement

The email input in the big footer variant needs the autocomplete="email" attribute in order to meet WCAG criteria 1.3.5.

Solution

Added the autocomplete attribute to the inputs with an email type.

Testing and review

  • Confirm all instances of inputs with type="email" have the autocomplete="email" attribute
  • Confirm that adding this attribute does not cause harm to the user experience

- This allows inputs to meet criteria for wcag 1.3.5
Copy link
Contributor

@mahoneycm mahoneycm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I didn't notice any behavior or screen reader changes across browsers.

@mahoneycm
Copy link
Contributor

chore (non-blocking): Once this is merged, we'll need to remove the passed with exception and github issue from the identifier accessibility checklist (added in uswds/uswds-site#2760)

@thisisdano thisisdano merged commit c8887a1 into develop Oct 3, 2024
5 checks passed
@thisisdano thisisdano deleted the al-footer-autocomplete branch October 3, 2024 04:08
@thisisdano thisisdano mentioned this pull request Oct 4, 2024
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 this pull request may close these issues.

USWDS - Footer: Add autocomplete attribute to email input
5 participants