Accessibility Audit
Comprehensive WCAG 2.1 accessibility audit for Webflow pages with detailed issue detection and actionable fixes.
Important Note
ALWAYS use Webflow MCP tools for all operations:
- Use Webflow MCP's
webflow_guide_tool to get best practices before starting
- Use Webflow MCP's
data_sites_tool with action list_sites to identify available sites
- Use Webflow MCP's
data_sites_tool with action get_site to retrieve site details
- Use Webflow MCP's
data_pages_tool with action list_pages to get all pages and their page IDs
- Use Webflow MCP's
data_element_tool with action get_all_elements (passing the page ID directly) to get detailed element information
- Use Webflow MCP's
data_element_tool with action set_attributes to fix accessibility issues
- Use Webflow MCP's
element_snapshot_tool to get visual previews of elements — this is a Designer tool and requires a Designer connection if used
- DO NOT use any other tools or methods for Webflow operations
- All tool calls must include the required
context parameter (15-25 words, third-person perspective)
- No Designer connection is required for the audit or fixes.
data_element_tool operates headlessly on any page ID from list_pages. Designer is only needed if you choose to use element_snapshot_tool for optional visual previews.
Instructions
Phase 1: Site & Page Selection
- Get site information: Use Webflow MCP's
data_sites_tool with action list_sites to identify target site
- Ask for page selection:
- If user provides page ID, use it directly
- Otherwise, use
data_pages_tool with action list_pages to show available pages
- Let user select which page(s) to audit
- Confirm audit scope: Ask user what to check:
- Full audit (all accessibility checks)
- Critical issues only (WCAG Level A)
- Specific categories (forms, buttons, navigation, etc.)
Phase 2: Element Extraction & Analysis
- Extract all elements: Use
data_element_tool with action get_all_elements, passing the target page's ID from Phase 1, for detailed analysis — no Designer connection needed
- Set
include_style_properties: true to check focus styles
- Set
include_all_breakpoint_styles: false to minimize data
- Parse element data: Identify interactive and content elements:
- Buttons (Button, LinkBlock with button role)
- Links (TextLink, Link, LinkBlock)
- Form inputs (Input, Select, Textarea)
- Headings (Heading elements with levels)
- Interactive divs/spans (check for onClick or interactive roles)
- Images (Image elements) - SKIP for this audit
- Extract attributes for each element:
- ARIA attributes (aria-label, aria-describedby, role, tabIndex)
- DOM attributes (id, domId, href, type, placeholder)
- Text content
- Style properties (outline, border for focus states)
- Element metadata (canHaveAttributes, tag name)
Phase 3: Accessibility Checks
Critical Issues (Must Fix - WCAG Level A)
Icon-only buttons without labels (WCAG 4.1.2)
- Find: Button elements with no text content
- Check: Missing
aria-label or aria-labelledby
- Impact: Screen readers cannot identify button purpose
- Fix: Add
aria-label attribute with descriptive text
Form inputs without labels (WCAG 1.3.1)
- Find: Input, Select, Textarea elements
- Check: Missing associated label or
aria-label
- Impact: Users don't know what input is for
- Fix: Add
aria-label or associate with <label> using id
Non-semantic click handlers (WCAG 2.1.1)
- Find: Div or Span elements (identified by element type)
- Check: Interactive behavior without proper role/keyboard support
- Impact: Not keyboard accessible, screen readers miss interactivity
- Fix: Add
role="button", tabIndex="0", suggest using real <button>
Links without destination (WCAG 2.1.1)
- Find: Link elements with no
href attribute
- Check: Links that only use onClick without href
- Impact: Not keyboard accessible, breaks browser features
- Fix: Add proper
href or convert to button
Serious Issues (Should Fix - WCAG Level AA)
Focus outline removed without replacement (WCAG 2.4.7)
- Find: Elements with
outline: none style
- Check: No visible alternative focus indicator
- Impact: Keyboard users can't see focus
- Fix: Add visible focus style (border, box-shadow, background change)
Missing keyboard handlers (WCAG 2.1.1)
- Find: Elements with onClick handlers
- Check: Missing onKeyDown for Enter/Space keys
- Impact: Not usable with keyboard alone
- Fix: Add keyboard event handlers
Touch target too small (WCAG 2.5.5)
- Find: Clickable elements (buttons, links)
- Check: Width or height < 44px
- Impact: Hard to tap on mobile devices
- Fix: Increase padding or min-width/min-height to 44px
Moderate Issues (Consider Fixing)
Heading hierarchy problems (WCAG 1.3.1)
- Find: Heading elements (h1-h6)
- Check: Skipped levels (h1 → h3, skipping h2)
- Impact: Confusing document structure
- Fix: Use proper sequential heading levels
Positive tabIndex (WCAG 2.4.3)
- Find: Elements with tabIndex > 0
- Check: Disrupts natural tab order
- Impact: Confusing keyboard navigation
- Fix: Use tabIndex="0" or "-1" only, let natural DOM order work
Role without required attributes (WCAG 4.1.2)
- Find: Elements with ARIA roles
- Check: Missing required ARIA attributes (e.g., role="button" without tabIndex)
- Impact: Incomplete accessibility semantics
- Fix: Add required attributes for role
Phase 4: Issue Categorization & Scoring
Categorize all findings:
- Critical: Must fix (blocks access)
- Serious: Should fix (significantly impacts usability)
- Moderate: Consider fixing (improves experience)
Calculate accessibility score (0-100):
- Start at 100
- Critical issue: -10 points each
- Serious issue: -5 points each
- Moderate issue: -2 points each
- Minimum score: 0
Generate severity summary:
- Total issues found
- Breakdown by severity
- Most common issue types
- Pages/sections most affected
Phase 5: Report Generation
Create detailed report with specific format:
═══════════════════════════════════════════════════
ACCESSIBILITY AUDIT: [Page Name]
═══════════════════════════════════════════════════
CRITICAL (X issues)
───────────────────
[A11Y] Element: Button "Submit"
Issue: Button missing accessible name
Location: Form section, element ID: {component: "abc", element: "xyz"}
Current: <button><CloseIcon /></button>
Fix: Add aria-label="Close"
WCAG: 4.1.2 Name, Role, Value
[A11Y] Element: Input field
Issue: Form input without label
Location: Contact form, element ID: {component: "def", element: "uvw"}
Current: <input type="email" />
Fix: Add aria-label="Email address" or associate with <label>
WCAG: 1.3.1 Info and Relationships
SERIOUS (X issues)
──────────────────
[A11Y] Element: Link "Read more"
Issue: Focus outline removed without visible alternative
Location: Blog section
Current: outline: none
Fix: Add visible focus style (e.g., border: 2px solid blue)
WCAG: 2.4.7 Focus Visible
MODERATE (X issues)
───────────────────
[A11Y] Element: Heading
Issue: Heading hierarchy skipped (h1 → h3)
Location: Article section
Current: <h3>Subsection</h3> after <h1>Title</h1>
Fix: Change to <h2> or add intermediate h2
WCAG: 1.3.1 Info and Relationships
═══════════════════════════════════════════════════
SUMMARY
───────────────────────────────────────────────────
Total Issues: X
- Critical: X issues
- Serious: X issues
- Moderate: X issues
Accessibility Score: XX/100
Most Common Issues:
1. [Issue type] - X occurrences
2. [Issue type] - X occurrences
3. [Issue type] - X occurrences
═══════════════════════════════════════════════════
Provide actionable insights:
- Prioritized fix list (critical first)
- Quick wins (easy fixes with big impact)
- Design pattern recommendations
- Resources for learning more
Phase 6: Fix Suggestions & Approval (Optional)
Offer to fix issues automatically: Fixes don't require Designer, so offer auto-fixes directly
Show preview of fixes:
Which issues would you like to fix?
[1] ✓ Add aria-label to Submit button
Element: Button in contact form
Fix: Add aria-label="Submit contact form"
Safe: Yes (adding attribute only)
[2] ✓ Add aria-label to email input
Element: Input in contact form
Fix: Add aria-label="Email address"
Safe: Yes
[3] ⚠️ Fix heading hierarchy
Element: h3 in article section
Fix: Change heading level from h3 to h2
Safe: May affect visual styling
Type numbers to skip (e.g., "3"), "all" for all, "none" to cancel
Apply approved fixes: Use data_element_tool with action set_attributes
- Process in batches
- Show progress for large fix sets
- Report success/failure for each
Generate post-fix report:
- Issues fixed: X
- Issues remaining: Y
- New accessibility score: XX/100 (improved from YY/100)
Phase 7: Export & Resources (Optional)
Offer export formats:
- Markdown (readable documentation)
- JSON (machine-readable for tracking)
- CSV (spreadsheet for team review)
Provide resources:
- WCAG 2.1 quick reference links
- Webflow accessibility best practices
- Recommended testing tools (browser extensions, screen readers)
Important Considerations
What This Skill Checks
✅ Button accessibility (labels, roles)
✅ Form input labels and associations
✅ Link semantics and keyboard access
✅ Focus visibility and keyboard navigation
✅ Heading hierarchy and structure
✅ ARIA roles and attributes
✅ Touch target sizes
✅ Interactive element semantics
What This Skill Does NOT Check
❌ Image alt text (use asset-audit skill instead)
❌ Color contrast ratios (requires visual analysis)
❌ Animation/motion preferences
❌ Screen reader testing (needs manual verification)
❌ Content readability (language level, clarity)
Limitations
- Cannot detect visual-only issues (color contrast, small text)
- Cannot test actual screen reader behavior
- Cannot validate content quality or clarity
- Relies on element attributes and structure only
Examples
Example 1: Full Page Audit
User prompt:
Run an accessibility audit on my homepage
Step 1: Site & Page Selection
🔍 Accessibility Audit: Page Selection
I'll help you audit your homepage for accessibility issues.
First, let me get your site information...
Available sites:
1. Company Website
2. Portfolio Site
Which site? (1/2)
User response: 1
Step 2: Page Selection
Available pages in Company Website:
1. Home (/)
2. About (/about)
3. Contact (/contact)
4. Blog (/blog)
Which page would you like to audit? (1 for Home)
User response: 1
Step 3: Audit Scope
What level of audit would you like?
1. Full audit (all WCAG checks) - Recommended
2. Critical issues only (Level A compliance)
3. Specific categories (buttons, forms, navigation)
Your choice: (1/2/3)
User response: 1
Step 4: Audit Progress
🔄 Running Accessibility Audit...
Progress:
✅ Extracted page content (45 elements)
✅ Analyzing buttons and interactive elements
✅ Checking form inputs and labels
✅ Validating heading hierarchy
✅ Checking keyboard navigation
🔄 Analyzing focus states...
Analysis complete!
Step 5: Report
═══════════════════════════════════════════════════
ACCESSIBILITY AUDIT: Home
═══════════════════════════════════════════════════
CRITICAL (3 issues)
───────────────────
[A11Y] Element: Button (navigation toggle)
Issue: Icon-only button missing accessible name
Location: Header navigation
Element ID: {component: "nav-01", element: "btn-menu"}
Current: <button><MenuIcon /></button>
Fix: Add aria-label="Open navigation menu"
WCAG: 4.1.2 Name, Role, Value
[A11Y] Element: Input (email subscription)
Issue: Form input without label
Location: Footer, newsletter signup
Element ID: {component: "footer-01", element: "email-input"}
Current: <input type="email" placeholder="Enter email" />
Fix: Add aria-label="Email address for newsletter"
WCAG: 1.3.1 Info and Relationships
[A11Y] Element: Div (clickable card)
Issue: Non-semantic interactive element
Location: Services section, card 2
Element ID: {component: "services-01", element: "card-02"}
Current: <div card</div>
Fix: Convert to <button> or add role="button" + tabIndex="0"
WCAG: 2.1.1 Keyboard
SERIOUS (5 issues)
──────────────────
[A11Y] Element: Link "Learn more"
Issue: Focus outline removed without visible alternative
Location: Hero section
Element ID: {component: "hero-01", element: "cta-link"}
Current: outline: none
Fix: Add focus style - border: 2px solid #0066cc or box-shadow
WCAG: 2.4.7 Focus Visible
[A11Y] Element: Button "Subscribe"
Issue: Touch target too small (30px × 36px)
Location: Footer newsletter form
Element ID: {component: "footer-01", element: "submit-btn"}
Current: Small button
Fix: Increase padding or set min-height: 44px
WCAG: 2.5.5 Target Size
[continues with 3 more serious issues...]
MODERATE (4 issues)
───────────────────
[A11Y] Element: Heading "Our Services"
Issue: Heading hierarchy skipped (h1 → h3)
Location: Services section
Element ID: {component: "services-01", element: "heading"}
Current: <h3>Our Services</h3> follows <h1>Welcome</h1>
Fix: Change to <h2> to maintain proper hierarchy
WCAG: 1.3.1 Info and Relationships
[continues with 3 more moderate issues...]
═══════════════════════════════════════════════════
SUMMARY
───────────────────────────────────────────────────
Total Issues: 12
- Critical: 3 issues (must fix)
- Serious: 5 issues (should fix)
- Moderate: 4 issues (consider fixing)
Accessibility Score: 64/100
Most Common Issues:
1. Missing button labels - 2 occurrences
2. Focus styles removed - 3 occurrences
3. Heading hierarchy problems - 2 occurrences
Quick Wins (Easy + High Impact):
✨ Add aria-label to icon buttons (2 min, +20 score points)
✨ Add input labels (5 min, +10 score points)
✨ Add focus styles (10 min, +15 score points)
═══════════════════════════════════════════════════
💡 Next Steps:
1. Fix critical issues first (blocks access for some users)
2. Add visible focus styles for keyboard users
3. Test with keyboard navigation (Tab, Enter, Space keys)
4. Consider testing with screen reader (NVDA/JAWS/VoiceOver)
Would you like me to help fix these issues?
Example 2: Multi-Page Audit
User prompt:
Audit accessibility across my entire site
Agent response:
🔍 Multi-Page Accessibility Audit
I'll audit all pages on your site for accessibility issues.
Found 8 pages:
1. Home
2. About
3. Services
4. Team
5. Blog
6. Blog Post Template (CMS)
7. Contact
8. Privacy Policy
This will take approximately 2-3 minutes.
Proceed with full site audit? (yes/no)
User: yes
Progress:
🔄 Auditing Site Accessibility...
Progress: ████████████░░░░░░░░ 60% (5/8 pages)
✅ Home - Score: 64/100 (12 issues)
✅ About - Score: 78/100 (6 issues)
✅ Services - Score: 71/100 (9 issues)
✅ Team - Score: 85/100 (4 issues)
✅ Blog - Score: 82/100 (5 issues)
🔄 Analyzing Blog Post Template...
Final Report:
═══════════════════════════════════════════════════
SITE-WIDE ACCESSIBILITY AUDIT
═══════════════════════════════════════════════════
OVERALL SCORE: 73/100
Pages Audited: 8
Total Issues: 48
- Critical: 11 issues
- Serious: 21 issues
- Moderate: 16 issues
═══════════════════════════════════════════════════
ISSUES BY PAGE
═══════════════════════════════════════════════════
🔴 Lowest Scores (Need Attention):
1. Home - 64/100 (12 issues: 3 critical, 5 serious, 4 moderate)
2. Services - 71/100 (9 issues: 2 critical, 5 serious, 2 moderate)
3. About - 78/100 (6 issues: 1 critical, 3 serious, 2 moderate)
🟢 Highest Scores:
1. Team - 85/100 (4 issues: 0 critical, 2 serious, 2 moderate)
2. Blog - 82/100 (5 issues: 1 critical, 2 serious, 2 moderate)
═══════════════════════════════════════════════════
SITE-WIDE PATTERNS
═══════════════════════════════════════════════════
Most Common Issues Across Site:
1. Missing button labels (icon buttons) - 8 occurrences
Pages affected: Home, Services, Blog, Contact
2. Focus outline removed - 12 occurrences
Pages affected: All pages (site-wide CSS issue)
3. Form inputs without labels - 5 occurrences
Pages affected: Home, Contact
4. Small touch targets (<44px) - 9 occurrences
Pages affected: Home, About, Services, Contact
═══════════════════════════════════════════════════
RECOMMENDATIONS
═══════════════════════════════════════════════════
🎯 Site-Wide Fixes (Fix Once, Helps Everywhere):
1. Add focus styles to global CSS (affects 12 issues across all pages)
2. Update button component to require aria-label (affects 8 issues)
3. Increase minimum touch target size in design system (affects 9 issues)
📋 Page-Specific Priorities:
1. Home page: Fix navigation menu button and newsletter form
2. Services page: Add labels to service card interactions
3. Contact page: Add proper labels to all form inputs
💡 Design System Improvements:
- Create accessible button component with required aria-label
- Add focus state variants to all interactive components
- Set minimum touch target size standard (44px)
Would you like:
1. Detailed report for specific page
2. Export findings to file (Markdown/JSON/CSV)
3. Help fixing site-wide issues
Example 3: Critical Issues Only
User prompt:
Check my contact page for critical accessibility issues only
Agent response:
🔍 Critical Issues Audit: Contact Page
Running quick scan for blocking accessibility issues...
✅ Page analyzed
═══════════════════════════════════════════════════
CRITICAL ISSUES: Contact Page
═══════════════════════════════════════════════════
Found: 4 critical issues
[1] Form Input Missing Label
Element: Email input field
Location: Contact form, top
Issue: No accessible name for screen readers
Fix: Add aria-label="Your email address"
WCAG: 1.3.1 (Level A)
[2] Form Input Missing Label
Element: Message textarea
Location: Contact form, bottom
Issue: No accessible name for screen readers
Fix: Add aria-label="Your message"
WCAG: 1.3.1 (Level A)
[3] Button Missing Label
Element: Submit button
Location: Contact form, bottom
Issue: Icon-only button with no text
Fix: Add aria-label="Submit contact form"
WCAG: 4.1.2 (Level A)
[4] Non-Semantic Interactive Element
Element: Social media link (Instagram)
Location: Footer
Issue: Div with onClick instead of proper link
Fix: Convert to <a href="..."> with aria-label="Instagram"
WCAG: 2.1.1 (Level A)
═══════════════════════════════════════════════════
⚠️ Impact: These issues prevent screen reader users from using your contact form.
🔧 Estimated fix time: 5 minutes
Would you like me to:
1. Run full audit (includes serious and moderate issues)
2. Fix these 4 critical issues now
3. Export this report (Markdown/JSON/CSV)
Safety Rules
Preview & Confirmation
- Always show detailed issue list before suggesting fixes
- Clearly mark severity levels (critical/serious/moderate)
- Explain impact of each issue in user-friendly terms
- Provide specific WCAG reference for each finding
Granular Approval for Fixes
- Allow user to select which issues to fix
- Warn about fixes that might affect visual design
- Process fixes in batches with progress indicators
- Report success/failure for each fix attempt
Error Handling
- If page cannot be accessed, explain clearly
- If element cannot be modified, suggest manual fix
- Separate automated fixes from manual review items
Validation
- Verify element types before suggesting fixes
- Check if element supports attributes before adding
- Test that suggested fixes are valid for element type
- Warn if fix might break existing functionality
Output Standards
Icons & Formatting
- 🔍 Discovery/Analysis
- 🔄 Processing
- ✅ Pass/Success
- ❌ Fail/Critical Issue
- ⚠️ Warning/Serious Issue
- 💡 Suggestion/Moderate Issue
- 📊 Report/Summary
- 🎯 Priority/Action Item
- 🔴 Critical Priority
- 🟡 Medium Priority
- 🟢 Low Priority
Report Structure
- Clear severity categorization
- Specific element identification with IDs
- Current state vs recommended fix
- WCAG reference for each issue
- Summary with actionable priorities
- Score for measurable progress
Communication
- Use clear, jargon-free language
- Explain WHY something is an issue (impact on users)
- Provide specific, actionable fixes
- Encourage testing with real assistive technology
- Emphasize that automated checks are just the start
Resources to Include
WCAG 2.1 Quick Reference
Webflow Accessibility Resources
- Webflow University: Accessibility best practices
- Using semantic HTML in Webflow
- Adding ARIA attributes in Webflow
Testing Tools
- Keyboard: Tab, Shift+Tab, Enter, Space
- Screen readers: NVDA (Windows), JAWS, VoiceOver (Mac/iOS)
- Browser extensions: axe DevTools, WAVE, Lighthouse
Common Fixes
- Button labels: Always include visible text or aria-label
- Form labels: Use Webflow's label element or aria-label
- Focus styles: Use :focus-visible pseudo-class
- Semantic HTML: Use proper elements (button, a, label)
1---2name: webflow-mcp-accessibility-audit3description: Run comprehensive accessibility audit (WCAG 2.1) on Webflow pages - checks buttons, forms, links, focus states, headings, keyboard navigation, and generates detailed reports with fixes. Runs entirely headlessly against a page ID — no Designer connection required. Excludes image alt text (covered by asset-audit skill).4---5
6# Accessibility Audit
7
8Comprehensive WCAG 2.1 accessibility audit for Webflow pages with detailed issue detection and actionable fixes.
9
10## Important Note
11
12**ALWAYS use Webflow MCP tools for all operations:**
13- Use Webflow MCP's `webflow_guide_tool` to get best practices before starting
14- Use Webflow MCP's `data_sites_tool` with action `list_sites` to identify available sites
15- Use Webflow MCP's `data_sites_tool` with action `get_site` to retrieve site details
16- Use Webflow MCP's `data_pages_tool` with action `list_pages` to get all pages and their page IDs
17- Use Webflow MCP's `data_element_tool` with action `get_all_elements` (passing the page ID directly) to get detailed element information
18- Use Webflow MCP's `data_element_tool` with action `set_attributes` to fix accessibility issues
19- Use Webflow MCP's `element_snapshot_tool` to get visual previews of elements — this is a Designer tool and requires a Designer connection if used
20- DO NOT use any other tools or methods for Webflow operations
21- All tool calls must include the required `context` parameter (15-25 words, third-person perspective)
22- **No Designer connection is required for the audit or fixes.** `data_element_tool` operates headlessly on any page ID from `list_pages`. Designer is only needed if you choose to use `element_snapshot_tool` for optional visual previews.
23
24## Instructions
25
26### Phase 1: Site & Page Selection
271. **Get site information**: Use Webflow MCP's `data_sites_tool` with action `list_sites` to identify target site
282. **Ask for page selection**:
29 - If user provides page ID, use it directly
30 - Otherwise, use `data_pages_tool` with action `list_pages` to show available pages
31 - Let user select which page(s) to audit
323. **Confirm audit scope**: Ask user what to check:
33 - Full audit (all accessibility checks)
34 - Critical issues only (WCAG Level A)
35 - Specific categories (forms, buttons, navigation, etc.)
36
37### Phase 2: Element Extraction & Analysis
384. **Extract all elements**: Use `data_element_tool` with action `get_all_elements`, passing the target page's ID from Phase 1, for detailed analysis — no Designer connection needed
39 - Set `include_style_properties: true` to check focus styles
40 - Set `include_all_breakpoint_styles: false` to minimize data
415. **Parse element data**: Identify interactive and content elements:
42 - Buttons (Button, LinkBlock with button role)
43 - Links (TextLink, Link, LinkBlock)
44 - Form inputs (Input, Select, Textarea)
45 - Headings (Heading elements with levels)
46 - Interactive divs/spans (check for onClick or interactive roles)
47 - Images (Image elements) - **SKIP for this audit**
486. **Extract attributes for each element**:
49 - ARIA attributes (aria-label, aria-describedby, role, tabIndex)
50 - DOM attributes (id, domId, href, type, placeholder)
51 - Text content
52 - Style properties (outline, border for focus states)
53 - Element metadata (canHaveAttributes, tag name)
54
55### Phase 3: Accessibility Checks
56
57#### Critical Issues (Must Fix - WCAG Level A)
587. **Icon-only buttons without labels** (WCAG 4.1.2)
59 - Find: Button elements with no text content
60 - Check: Missing `aria-label` or `aria-labelledby`
61 - Impact: Screen readers cannot identify button purpose
62 - Fix: Add `aria-label` attribute with descriptive text
63
648. **Form inputs without labels** (WCAG 1.3.1)
65 - Find: Input, Select, Textarea elements
66 - Check: Missing associated label or `aria-label`
67 - Impact: Users don't know what input is for
68 - Fix: Add `aria-label` or associate with `<label>` using `id`
69
709. **Non-semantic click handlers** (WCAG 2.1.1)
71 - Find: Div or Span elements (identified by element type)
72 - Check: Interactive behavior without proper role/keyboard support
73 - Impact: Not keyboard accessible, screen readers miss interactivity
74 - Fix: Add `role="button"`, `tabIndex="0"`, suggest using real `<button>`
75
7610. **Links without destination** (WCAG 2.1.1)
77 - Find: Link elements with no `href` attribute
78 - Check: Links that only use onClick without href
79 - Impact: Not keyboard accessible, breaks browser features
80 - Fix: Add proper `href` or convert to button
81
82#### Serious Issues (Should Fix - WCAG Level AA)
8311. **Focus outline removed without replacement** (WCAG 2.4.7)
84 - Find: Elements with `outline: none` style
85 - Check: No visible alternative focus indicator
86 - Impact: Keyboard users can't see focus
87 - Fix: Add visible focus style (border, box-shadow, background change)
88
8912. **Missing keyboard handlers** (WCAG 2.1.1)
90 - Find: Elements with onClick handlers
91 - Check: Missing onKeyDown for Enter/Space keys
92 - Impact: Not usable with keyboard alone
93 - Fix: Add keyboard event handlers
94
9513. **Touch target too small** (WCAG 2.5.5)
96 - Find: Clickable elements (buttons, links)
97 - Check: Width or height < 44px
98 - Impact: Hard to tap on mobile devices
99 - Fix: Increase padding or min-width/min-height to 44px
100
101#### Moderate Issues (Consider Fixing)
10214. **Heading hierarchy problems** (WCAG 1.3.1)
103 - Find: Heading elements (h1-h6)
104 - Check: Skipped levels (h1 → h3, skipping h2)
105 - Impact: Confusing document structure
106 - Fix: Use proper sequential heading levels
107
10815. **Positive tabIndex** (WCAG 2.4.3)
109 - Find: Elements with tabIndex > 0
110 - Check: Disrupts natural tab order
111 - Impact: Confusing keyboard navigation
112 - Fix: Use tabIndex="0" or "-1" only, let natural DOM order work
113
11416. **Role without required attributes** (WCAG 4.1.2)
115 - Find: Elements with ARIA roles
116 - Check: Missing required ARIA attributes (e.g., role="button" without tabIndex)
117 - Impact: Incomplete accessibility semantics
118 - Fix: Add required attributes for role
119
120### Phase 4: Issue Categorization & Scoring
12117. **Categorize all findings**:
122 - Critical: Must fix (blocks access)
123 - Serious: Should fix (significantly impacts usability)
124 - Moderate: Consider fixing (improves experience)
125
12618. **Calculate accessibility score** (0-100):
127 - Start at 100
128 - Critical issue: -10 points each
129 - Serious issue: -5 points each
130 - Moderate issue: -2 points each
131 - Minimum score: 0
132
13319. **Generate severity summary**:
134 - Total issues found
135 - Breakdown by severity
136 - Most common issue types
137 - Pages/sections most affected
138
139### Phase 5: Report Generation
14020. **Create detailed report** with specific format:
141 ```
142 ═══════════════════════════════════════════════════
143 ACCESSIBILITY AUDIT: [Page Name]
144 ═══════════════════════════════════════════════════
145
146 CRITICAL (X issues)
147 ───────────────────
148 [A11Y] Element: Button "Submit"
149 Issue: Button missing accessible name
150 Location: Form section, element ID: {component: "abc", element: "xyz"}
151 Current: <button><CloseIcon /></button>
152 Fix: Add aria-label="Close"
153 WCAG: 4.1.2 Name, Role, Value
154
155 [A11Y] Element: Input field
156 Issue: Form input without label
157 Location: Contact form, element ID: {component: "def", element: "uvw"}
158 Current: <input type="email" />
159 Fix: Add aria-label="Email address" or associate with <label>
160 WCAG: 1.3.1 Info and Relationships
161
162 SERIOUS (X issues)
163 ──────────────────
164 [A11Y] Element: Link "Read more"
165 Issue: Focus outline removed without visible alternative
166 Location: Blog section
167 Current: outline: none
168 Fix: Add visible focus style (e.g., border: 2px solid blue)
169 WCAG: 2.4.7 Focus Visible
170
171 MODERATE (X issues)
172 ───────────────────
173 [A11Y] Element: Heading
174 Issue: Heading hierarchy skipped (h1 → h3)
175 Location: Article section
176 Current: <h3>Subsection</h3> after <h1>Title</h1>
177 Fix: Change to <h2> or add intermediate h2
178 WCAG: 1.3.1 Info and Relationships
179
180 ═══════════════════════════════════════════════════
181 SUMMARY
182 ───────────────────────────────────────────────────
183 Total Issues: X
184 - Critical: X issues
185 - Serious: X issues
186 - Moderate: X issues
187
188 Accessibility Score: XX/100
189
190 Most Common Issues:
191 1. [Issue type] - X occurrences
192 2. [Issue type] - X occurrences
193 3. [Issue type] - X occurrences
194 ═══════════════════════════════════════════════════
195 ```
196
19721. **Provide actionable insights**:
198 - Prioritized fix list (critical first)
199 - Quick wins (easy fixes with big impact)
200 - Design pattern recommendations
201 - Resources for learning more
202
203### Phase 6: Fix Suggestions & Approval (Optional)
20422. **Offer to fix issues automatically**: Fixes don't require Designer, so offer auto-fixes directly
20523. **Show preview of fixes**:
206 ```
207 Which issues would you like to fix?
208
209 [1] ✓ Add aria-label to Submit button
210 Element: Button in contact form
211 Fix: Add aria-label="Submit contact form"
212 Safe: Yes (adding attribute only)
213
214 [2] ✓ Add aria-label to email input
215 Element: Input in contact form
216 Fix: Add aria-label="Email address"
217 Safe: Yes
218
219 [3] ⚠️ Fix heading hierarchy
220 Element: h3 in article section
221 Fix: Change heading level from h3 to h2
222 Safe: May affect visual styling
223
224 Type numbers to skip (e.g., "3"), "all" for all, "none" to cancel
225 ```
226
22724. **Apply approved fixes**: Use `data_element_tool` with action `set_attributes`
228 - Process in batches
229 - Show progress for large fix sets
230 - Report success/failure for each
231
23225. **Generate post-fix report**:
233 - Issues fixed: X
234 - Issues remaining: Y
235 - New accessibility score: XX/100 (improved from YY/100)
236
237### Phase 7: Export & Resources (Optional)
23826. **Offer export formats**:
239 - Markdown (readable documentation)
240 - JSON (machine-readable for tracking)
241 - CSV (spreadsheet for team review)
242
24327. **Provide resources**:
244 - WCAG 2.1 quick reference links
245 - Webflow accessibility best practices
246 - Recommended testing tools (browser extensions, screen readers)
247
248## Important Considerations
249
250### What This Skill Checks
251✅ Button accessibility (labels, roles)
252✅ Form input labels and associations
253✅ Link semantics and keyboard access
254✅ Focus visibility and keyboard navigation
255✅ Heading hierarchy and structure
256✅ ARIA roles and attributes
257✅ Touch target sizes
258✅ Interactive element semantics
259
260### What This Skill Does NOT Check
261❌ Image alt text (use **asset-audit** skill instead)
262❌ Color contrast ratios (requires visual analysis)
263❌ Animation/motion preferences
264❌ Screen reader testing (needs manual verification)
265❌ Content readability (language level, clarity)
266
267### Limitations
268- Cannot detect visual-only issues (color contrast, small text)
269- Cannot test actual screen reader behavior
270- Cannot validate content quality or clarity
271- Relies on element attributes and structure only
272
273## Examples
274
275### Example 1: Full Page Audit
276
277**User prompt:**
278```
279Run an accessibility audit on my homepage
280```
281
282**Step 1: Site & Page Selection**
283```
284🔍 Accessibility Audit: Page Selection
285
286I'll help you audit your homepage for accessibility issues.
287
288First, let me get your site information...
289
290Available sites:
2911. Company Website
2922. Portfolio Site
293
294Which site? (1/2)
295```
296
297**User response:** `1`
298
299**Step 2: Page Selection**
300```
301Available pages in Company Website:
3021. Home (/)
3032. About (/about)
3043. Contact (/contact)
3054. Blog (/blog)
306
307Which page would you like to audit? (1 for Home)
308```
309
310**User response:** `1`
311
312**Step 3: Audit Scope**
313```
314What level of audit would you like?
315
3161. Full audit (all WCAG checks) - Recommended
3172. Critical issues only (Level A compliance)
3183. Specific categories (buttons, forms, navigation)
319
320Your choice: (1/2/3)
321```
322
323**User response:** `1`
324
325**Step 4: Audit Progress**
326```
327🔄 Running Accessibility Audit...
328
329Progress:
330✅ Extracted page content (45 elements)
331✅ Analyzing buttons and interactive elements
332✅ Checking form inputs and labels
333✅ Validating heading hierarchy
334✅ Checking keyboard navigation
335🔄 Analyzing focus states...
336
337Analysis complete!
338```
339
340**Step 5: Report**
341```
342═══════════════════════════════════════════════════
343ACCESSIBILITY AUDIT: Home
344═══════════════════════════════════════════════════
345
346CRITICAL (3 issues)
347───────────────────
348[A11Y] Element: Button (navigation toggle)
349 Issue: Icon-only button missing accessible name
350 Location: Header navigation
351 Element ID: {component: "nav-01", element: "btn-menu"}
352 Current: <button><MenuIcon /></button>
353 Fix: Add aria-label="Open navigation menu"
354 WCAG: 4.1.2 Name, Role, Value
355
356[A11Y] Element: Input (email subscription)
357 Issue: Form input without label
358 Location: Footer, newsletter signup
359 Element ID: {component: "footer-01", element: "email-input"}
360 Current: <input type="email" placeholder="Enter email" />
361 Fix: Add aria-label="Email address for newsletter"
362 WCAG: 1.3.1 Info and Relationships
363
364[A11Y] Element: Div (clickable card)
365 Issue: Non-semantic interactive element
366 Location: Services section, card 2
367 Element ID: {component: "services-01", element: "card-02"}
368 Current: <div onClick={...}>Service card</div>
369 Fix: Convert to <button> or add role="button" + tabIndex="0"
370 WCAG: 2.1.1 Keyboard
371
372SERIOUS (5 issues)
373──────────────────
374[A11Y] Element: Link "Learn more"
375 Issue: Focus outline removed without visible alternative
376 Location: Hero section
377 Element ID: {component: "hero-01", element: "cta-link"}
378 Current: outline: none
379 Fix: Add focus style - border: 2px solid #0066cc or box-shadow
380 WCAG: 2.4.7 Focus Visible
381
382[A11Y] Element: Button "Subscribe"
383 Issue: Touch target too small (30px × 36px)
384 Location: Footer newsletter form
385 Element ID: {component: "footer-01", element: "submit-btn"}
386 Current: Small button
387 Fix: Increase padding or set min-height: 44px
388 WCAG: 2.5.5 Target Size
389
390[continues with 3 more serious issues...]
391
392MODERATE (4 issues)
393───────────────────
394[A11Y] Element: Heading "Our Services"
395 Issue: Heading hierarchy skipped (h1 → h3)
396 Location: Services section
397 Element ID: {component: "services-01", element: "heading"}
398 Current: <h3>Our Services</h3> follows <h1>Welcome</h1>
399 Fix: Change to <h2> to maintain proper hierarchy
400 WCAG: 1.3.1 Info and Relationships
401
402[continues with 3 more moderate issues...]
403
404═══════════════════════════════════════════════════
405SUMMARY
406───────────────────────────────────────────────────
407Total Issues: 12
408- Critical: 3 issues (must fix)
409- Serious: 5 issues (should fix)
410- Moderate: 4 issues (consider fixing)
411
412Accessibility Score: 64/100
413
414Most Common Issues:
4151. Missing button labels - 2 occurrences
4162. Focus styles removed - 3 occurrences
4173. Heading hierarchy problems - 2 occurrences
418
419Quick Wins (Easy + High Impact):
420✨ Add aria-label to icon buttons (2 min, +20 score points)
421✨ Add input labels (5 min, +10 score points)
422✨ Add focus styles (10 min, +15 score points)
423
424═══════════════════════════════════════════════════
425
426💡 Next Steps:
4271. Fix critical issues first (blocks access for some users)
4282. Add visible focus styles for keyboard users
4293. Test with keyboard navigation (Tab, Enter, Space keys)
4304. Consider testing with screen reader (NVDA/JAWS/VoiceOver)
431
432Would you like me to help fix these issues?
433```
434
435### Example 2: Multi-Page Audit
436
437**User prompt:**
438```
439Audit accessibility across my entire site
440```
441
442**Agent response:**
443```
444🔍 Multi-Page Accessibility Audit
445
446I'll audit all pages on your site for accessibility issues.
447
448Found 8 pages:
4491. Home
4502. About
4513. Services
4524. Team
4535. Blog
4546. Blog Post Template (CMS)
4557. Contact
4568. Privacy Policy
457
458This will take approximately 2-3 minutes.
459
460Proceed with full site audit? (yes/no)
461```
462
463**User:** `yes`
464
465**Progress:**
466```
467🔄 Auditing Site Accessibility...
468
469Progress: ████████████░░░░░░░░ 60% (5/8 pages)
470
471✅ Home - Score: 64/100 (12 issues)
472✅ About - Score: 78/100 (6 issues)
473✅ Services - Score: 71/100 (9 issues)
474✅ Team - Score: 85/100 (4 issues)
475✅ Blog - Score: 82/100 (5 issues)
476🔄 Analyzing Blog Post Template...
477```
478
479**Final Report:**
480```
481═══════════════════════════════════════════════════
482SITE-WIDE ACCESSIBILITY AUDIT
483═══════════════════════════════════════════════════
484
485OVERALL SCORE: 73/100
486
487Pages Audited: 8
488Total Issues: 48
489- Critical: 11 issues
490- Serious: 21 issues
491- Moderate: 16 issues
492
493═══════════════════════════════════════════════════
494ISSUES BY PAGE
495═══════════════════════════════════════════════════
496
497🔴 Lowest Scores (Need Attention):
4981. Home - 64/100 (12 issues: 3 critical, 5 serious, 4 moderate)
4992. Services - 71/100 (9 issues: 2 critical, 5 serious, 2 moderate)
5003. About - 78/100 (6 issues: 1 critical, 3 serious, 2 moderate)
501
502🟢 Highest Scores:
5031. Team - 85/100 (4 issues: 0 critical, 2 serious, 2 moderate)
5042. Blog - 82/100 (5 issues: 1 critical, 2 serious, 2 moderate)
505
506═══════════════════════════════════════════════════
507SITE-WIDE PATTERNS
508═══════════════════════════════════════════════════
509
510Most Common Issues Across Site:
5111. Missing button labels (icon buttons) - 8 occurrences
512 Pages affected: Home, Services, Blog, Contact
513
5142. Focus outline removed - 12 occurrences
515 Pages affected: All pages (site-wide CSS issue)
516
5173. Form inputs without labels - 5 occurrences
518 Pages affected: Home, Contact
519
5204. Small touch targets (<44px) - 9 occurrences
521 Pages affected: Home, About, Services, Contact
522
523═══════════════════════════════════════════════════
524RECOMMENDATIONS
525═══════════════════════════════════════════════════
526
527🎯 Site-Wide Fixes (Fix Once, Helps Everywhere):
5281. Add focus styles to global CSS (affects 12 issues across all pages)
5292. Update button component to require aria-label (affects 8 issues)
5303. Increase minimum touch target size in design system (affects 9 issues)
531
532📋 Page-Specific Priorities:
5331. Home page: Fix navigation menu button and newsletter form
5342. Services page: Add labels to service card interactions
5353. Contact page: Add proper labels to all form inputs
536
537💡 Design System Improvements:
538- Create accessible button component with required aria-label
539- Add focus state variants to all interactive components
540- Set minimum touch target size standard (44px)
541
542Would you like:
5431. Detailed report for specific page
5442. Export findings to file (Markdown/JSON/CSV)
5453. Help fixing site-wide issues
546```
547
548### Example 3: Critical Issues Only
549
550**User prompt:**
551```
552Check my contact page for critical accessibility issues only
553```
554
555**Agent response:**
556```
557🔍 Critical Issues Audit: Contact Page
558
559Running quick scan for blocking accessibility issues...
560
561✅ Page analyzed
562
563═══════════════════════════════════════════════════
564CRITICAL ISSUES: Contact Page
565═══════════════════════════════════════════════════
566
567Found: 4 critical issues
568
569[1] Form Input Missing Label
570 Element: Email input field
571 Location: Contact form, top
572 Issue: No accessible name for screen readers
573 Fix: Add aria-label="Your email address"
574 WCAG: 1.3.1 (Level A)
575
576[2] Form Input Missing Label
577 Element: Message textarea
578 Location: Contact form, bottom
579 Issue: No accessible name for screen readers
580 Fix: Add aria-label="Your message"
581 WCAG: 1.3.1 (Level A)
582
583[3] Button Missing Label
584 Element: Submit button
585 Location: Contact form, bottom
586 Issue: Icon-only button with no text
587 Fix: Add aria-label="Submit contact form"
588 WCAG: 4.1.2 (Level A)
589
590[4] Non-Semantic Interactive Element
591 Element: Social media link (Instagram)
592 Location: Footer
593 Issue: Div with onClick instead of proper link
594 Fix: Convert to <a href="..."> with aria-label="Instagram"
595 WCAG: 2.1.1 (Level A)
596
597═══════════════════════════════════════════════════
598
599⚠️ Impact: These issues prevent screen reader users from using your contact form.
600
601🔧 Estimated fix time: 5 minutes
602
603Would you like me to:
6041. Run full audit (includes serious and moderate issues)
6052. Fix these 4 critical issues now
6063. Export this report (Markdown/JSON/CSV)
607```
608
609## Safety Rules
610
611### Preview & Confirmation
612- Always show detailed issue list before suggesting fixes
613- Clearly mark severity levels (critical/serious/moderate)
614- Explain impact of each issue in user-friendly terms
615- Provide specific WCAG reference for each finding
616
617### Granular Approval for Fixes
618- Allow user to select which issues to fix
619- Warn about fixes that might affect visual design
620- Process fixes in batches with progress indicators
621- Report success/failure for each fix attempt
622
623### Error Handling
624- If page cannot be accessed, explain clearly
625- If element cannot be modified, suggest manual fix
626- Separate automated fixes from manual review items
627
628### Validation
629- Verify element types before suggesting fixes
630- Check if element supports attributes before adding
631- Test that suggested fixes are valid for element type
632- Warn if fix might break existing functionality
633
634## Output Standards
635
636### Icons & Formatting
637- 🔍 Discovery/Analysis
638- 🔄 Processing
639- ✅ Pass/Success
640- ❌ Fail/Critical Issue
641- ⚠️ Warning/Serious Issue
642- 💡 Suggestion/Moderate Issue
643- 📊 Report/Summary
644- 🎯 Priority/Action Item
645- 🔴 Critical Priority
646- 🟡 Medium Priority
647- 🟢 Low Priority
648
649### Report Structure
6501. Clear severity categorization
6512. Specific element identification with IDs
6523. Current state vs recommended fix
6534. WCAG reference for each issue
6545. Summary with actionable priorities
6556. Score for measurable progress
656
657### Communication
658- Use clear, jargon-free language
659- Explain WHY something is an issue (impact on users)
660- Provide specific, actionable fixes
661- Encourage testing with real assistive technology
662- Emphasize that automated checks are just the start
663
664## Resources to Include
665
666### WCAG 2.1 Quick Reference
667- https://www.w3.org/WAI/WCAG21/quickref/
668
669### Webflow Accessibility Resources
670- Webflow University: Accessibility best practices
671- Using semantic HTML in Webflow
672- Adding ARIA attributes in Webflow
673
674### Testing Tools
675- Keyboard: Tab, Shift+Tab, Enter, Space
676- Screen readers: NVDA (Windows), JAWS, VoiceOver (Mac/iOS)
677- Browser extensions: axe DevTools, WAVE, Lighthouse
678
679### Common Fixes
680- Button labels: Always include visible text or aria-label
681- Form labels: Use Webflow's label element or aria-label
682- Focus styles: Use :focus-visible pseudo-class
683- Semantic HTML: Use proper elements (button, a, label)