Description
This prompt provides comprehensive education about a specific WCAG criterion, including its purpose, impact on users, code examples, testing strategies, and common mistakes. Perfect for learning, documentation, and team training. Best for: Learning, documentation, team training, understanding specific WCAG requirements.Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
criterion | string | ✅ | - | WCAG criterion ID (e.g., 1.1.1, 2.4.4, 1.4.3) |
Example Usage
Basic Usage
Natural Language
Common Criteria to Explore
Output Includes
The prompt generates an educational deep dive with:1. Criterion Overview
- Full name and description
- Conformance level (A, AA, or AAA)
- WCAG principle (Perceivable, Operable, Understandable, Robust)
2. What It Means
Plain language explanation of the requirement3. Why It Matters
Real-world impact on users with disabilities:- Which users are affected
- How the issue impacts them
- Real-world examples and user quotes
4. Code Examples
Before/after implementations showing:- Failing example (what violates the criterion)
- Passing example (compliant implementation)
- Better example (best practice)
5. Testing Strategies
- Manual testing approaches
- Automated testing tools
- Edge cases to watch for
6. Common Mistakes
Frequent errors and how to avoid them7. Official Resources
Links to WCAG documentation and related criteriaExample Output Structure
✅ Passing Example
✅ Better Example
Testing Strategies
Manual Testing
- Use browser DevTools color picker to check contrast
- Test with high contrast mode enabled
- View page in grayscale to spot issues
- Check in bright light conditions
Automated Testing
- AccesibilityHub:
analyze-contrasttool - Browser extensions: axe DevTools, WAVE
- Design tools: Figma contrast plugins
Tools
Common Mistakes
-
Relying only on color to convey info
- Fix: Add text labels, icons, or patterns
-
Placeholder text as labels
- Placeholders often have low contrast by default
-
Focus states with poor contrast
- Focus indicators need 3:1 contrast too
-
Text over images without overlay
- Add semi-transparent background behind text
-
Forgetting disabled state contrast
- Disabled elements are exempt but should still be visible