experience-accessibility-validate
Use this skill to determine whether a Lightning Web Component (LWC) is accessible and meets WCAG accessibility guidelines. TRIGGER when the user asks "is my component accessible?", "does my LWC meet accessibility guidelines?", "is this component WCAG compliant?", "find accessibility problems in this LWC", "is this LWC keyboard accessible?", "does this component work with a screen reader?", "does this component have sufficient color contrast?", "check ARIA usage in this LWC", or "WCAG 2.2 accessibility check". Also TRIGGER when the user wants to fix or improve accessibility (a11y, WCAG, ARIA) in an LWC's HTML, JS, or CSS — semantic markup, focus, keyboard nav, contrast, screen-reader labels, WCAG 2.2 SC. Produces `a11y-review.md` with WCAG-cited findings. DO NOT TRIGGER for general LWC generation (use `experience-lwc-generate`) or SLDS visual/design review not focused on accessibility (use `design-systems-slds-validate`).
NPX Install
npx skill4agent add forcedotcom/sf-skills experience-accessibility-validateTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Web Component Accessibility
Review Context
- Focus Exclusively on Accessibility:
- Evaluate the component solely for accessibility.
- Only consider compliance with the cited WCAG Success Criteria, ignoring violations that can be attributed to other criteria.
- Avoid addressing general code style, patterns, or issues unrelated to accessibility.
- Ensure Minimum and Sufficient Accessibility:
- Identify accessibility issues that prevent the component from meeting the minimum requirements outlined by WCAG.
- Avoid suggesting enhancements that go beyond the scope of WCAG compliance unless strictly necessary.
- WAI-ARIA Usage:
- Use WAI-ARIA attributes only when strictly required to achieve accessibility that cannot otherwise be addressed with semantic HTML.
- Avoid unnecessary complexity or potential regressions caused by incorrect or overuse of ARIA attributes.
- Component Library Usage
- Assume that well-known component libraries (e.g., Salesforce Lightning, Material UI, Chakra UI) are accessible out of the box when correctly implemented. Unless they are used specifically in conflict with WCAG, library-provided components can be ignored for this review, as they are implemented in an accessible way beneath the abstraction.
Success Criteria Reviewers
Perceivable
- SC 1.1.1 Non-text Content
- SC 1.3.1 (i) Lists
- SC 1.3.1 (ii) Tables
- SC 1.3.1 (iii) Form Labels
- SC 1.3.1 (iv) Regions
- SC 1.3.1 (v) Groups
- SC 1.3.5 Identify Input Purpose
- SC 1.4.3 Contrast (Minimum)
Operable
- SC 2.1.1 Keyboard
- SC 2.4.4 Link Purpose
- SC 2.4.6 Headings and Labels
- SC 2.5.1 Pointer Gestures
- SC 2.5.2 Pointer Cancellation
- SC 2.5.3 Label in Name
- SC 2.5.7 Dragging Movements
Understandable
- SC 3.2.1 On Focus
- SC 3.2.2 On Input
- SC 3.3.1 Error Identification
- SC 3.3.2 Labels or Instructions
- SC 3.3.3 Error Suggestion
Robust
- SC 4.1.2 (i) Name
- SC 4.1.2 (ii) Role
- SC 4.1.2 (iii) Value
Vision-Assisted Review
- SC 1.1.1 Non-text Content (vision)
- SC 1.4.1 Use of Color (vision)
- SC 1.4.3 Contrast (vision)
- SC 1.4.10 Reflow (vision)
- SC 1.4.11 Non-text Contrast (vision)