department-of-veterans-affairs / vets-design-system-documentation

Repository for design.va.gov website
https://design.va.gov
36 stars 55 forks source link

Text-input - Input mode of email should set appropriate attributes #2766

Open humancompanion-usds opened 3 weeks ago

humancompanion-usds commented 3 weeks ago

When the inputmode prop is set to email we should add the following attributes to reduce user frustration:

This will stop browsers automatically changing user input on fields that expect grammatically incorrect data—like email addresses. The first attribute might do the following 3 automatically so that should be tested. But the end result is that we want the browser to not change input when entering a valid email address.

Details

This is the first in a series of improvements we should make to our inputs where we support a specific type. So more to come. More on autocomplete.

Tasks

Acceptance Criteria