Skip to main content
HighWCAG 3.3.1 · Level AUnderstandable

Form Error Indicated by Color Alone

Flags form fields with red border error styling that lack text descriptions or aria-describedby references.

Rule ID: custom-form-error-color-only · reported under Needs review, because a person should confirm it.

Who this affects

How to fix it

Problem

<input class="border-red-500" />

Fixed

<input class="border-red-500" aria-describedby="err-1" aria-invalid="true" /><span id="err-1" class="text-red-600 text-xs">Enter valid email.</span>

These are short examples. In the extension, A11yEngine points to the element on your own page and can suggest a fix for your code (HTML, React, Vue or Tailwind).

Find this on your own pages

Check any page for this and 100+ other issues in your browser, free.

← All rules