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

[Login] Placeholder is redundant #5

Open
svinkle opened this issue May 19, 2020 · 0 comments
Open

[Login] Placeholder is redundant #5

svinkle opened this issue May 19, 2020 · 0 comments

Comments

@svinkle
Copy link
Member

svinkle commented May 19, 2020

Issue summary

The form input fields include a placeholder attribute which contains redundant information, generating a verbose user experience. placeholder is meant to provide a hint for data entry.

Screen Shot 2020-05-19 at 10 13 50 AM

Current code

HTML

<input
  type="text"
  name="username"
  id="username"
  
  placeholder="Enter username"
/>

<!-- … -->

<input
  type="password"
  name="password"
  id="password"
  
  placeholder="Enter password"
/>

Steps to reproduce

  1. Go to https://portal.covidshield.app/ with with any supported browser
  2. With an active screen reader, Tab to each field

Behavior

Expected

  • Field announcement to be concise.

Actual

  • Field announcement is verbose.

Recommendation

Remove the placeholder attribute from each field.

Recommended code

HTML

<input
  type="text"
  name="username"
  id="username"
  
/>

<!-- … -->

<input
  type="password"
  name="password"
  id="password"
  
/>

Specifications

  • Component: Login
  • WCAG Principle: Perceivable
  • WCAG SC: 1.3.1 Info and Relationships
  • Severity: Low
  • Effort: Low
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant