Home
Bookmarks
Leagues
LEARN
Courses
Career Paths
Assessments
Tutorials
Arcade
Glossary
GROW
Certifications
Log in
Glossary
Log inSign up
Courses/Introduction to Design Systems/Accessibility First: WCAG & Inclusive Foundations/
Exercise #10

Challenge: Auditing an Inaccessible Form Field

Review this real-world form field implementation in a legacy codebase:

<div class="field">
  <div class="label">Work Email</div>
  <input placeholder="Enter work email" style="border: 1px solid #E0E0E0;" />
  <span class="error" style="color: #F87171;">Invalid email address</span>
</div>

This input has four severe accessibility flaws:

  1. The label is a <div> with no for or id link to the input.
  2. The border (#E0E0E0) has a 1.2:1 contrast ratio against the white background (violating the 3.0:1 non-text rule).
  3. The error message relies solely on red text color without an error icon or semantic aria-invalid attribute.
  4. The error is not announced to screen readers (aria-describedby is missing).

Topics

Accessibility as a Systemic Multiplier
The 4 Core Principles of WCAG (POUR)
Color Contrast Standards: WCAG AA vs AAA
Visible Focus Rings & Focus Management
Focus Trapping in Modals & Dialogs
ARIA: When to Use It and the 'First Rule of ARIA'
Touch Targets & Pointer Cancellation (WCAG 2.2)
Motion Sensitivity & `prefers-reduced-motion`
Screen Reader Testing & Semantic Landmarks
Challenge: Auditing an Inaccessible Form Field

From lesson

2

Accessibility First: WCAG & Inclusive Foundations

Level 2 · Core Principles & Governance

Top contributors

Community contribution details will appear here once real learner activity is available.

Share