Color may not exclusively identify content or distinguish differences in any content (e.g. Red items are invalid, Green items are valid)
WCAG 2 criterion
1.4.1 Use of Color (Level A)
Tools and requirements
Test procedure
During the course of manual evaluation, take note of situations where you see differently colored text compared to the surrounding text.
When coming across text with a different color
Ensure the color shift is not used to exclusively compare or call out text as important or different from other text.
If color is not exclusively used to call out text as different, it does not fall under this criterion (e.g., if text and color are both used, then it would not be a failure).
AI Prompt
Copy to Clipboard
Create a PHP class in the namespace "App\Services\AccessibilityAnalyzer\GuidelineRules"
that extends "App\Services\AccessibilityAnalyzer\GuidelineRuleRunner" and is called "Guideline31" that has a function with the signature "protected function findApplicableElements(Crawler $crawler): Crawler". The base class includes the function "protected function isElementIncludedInAccessibilityTree(\DOMNode $element): bool" for determining if an element is included in the accessibility tree.
Web accessibility guideline:
## Color may not exclusively identify content or distinguish differences in any content (e.g. Red items are invalid, Green items are valid)
### WCAG 2 criterion
1.4.1 Use of Color (Level A)
### Tools and requirements
* Manual Evaluation
### Test procedure
During the course of manual evaluation, take note of situations where you see differently colored text compared to the surrounding text.
When coming across text with a different color
* Ensure the color shift is not used to exclusively compare or call out text as important or different from other text.
* If color is not exclusively used to call out text as different, it does not fall under this criterion (e.g., if text and color are both used, then it would not be a failure).