← 返回
未分类 中文

Accessibility Scanner

Scan web applications for accessibility issues — WCAG 2.2 compliance, screen reader compatibility, keyboard navigation, color contrast, and ARIA usage.
扫描网页应用的可访问性问题——WCAG 2.2 合规、屏幕阅读器兼容、键盘导航、颜色对比度及 ARIA 使用。
charlie-morrison charlie-morrison 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 294
下载
💾 1
安装
1
版本
#latest

概述

Accessibility Scanner

Scan web applications for WCAG 2.2 compliance issues including screen reader compatibility, keyboard navigation, color contrast, ARIA usage, semantic HTML, and focus management. Use for accessibility audits, compliance reviews, or improving inclusive design.

Usage

"Scan my app for accessibility issues"
"Check WCAG compliance on these pages"
"Audit ARIA usage in my components"
"Review keyboard navigation"

How It Works

1. Static Analysis

Scan source code for common a11y issues:

# Find images without alt text
grep -rn '<img' src/ | grep -v 'alt='
# Find buttons without accessible names
grep -rn '<button' src/ | grep -v 'aria-label\|aria-labelledby'
# Find interactive elements without keyboard handlers
grep -rn 'onClick' src/ | grep -v 'onKeyDown\|onKeyPress\|role="button"'
# Find form inputs without labels
grep -rn '<input' src/ | grep -v 'aria-label\|id.*label\|aria-labelledby'

2. WCAG 2.2 Checklist

Level A (must have):

  • All images have alt text (1.1.1)
  • All form inputs have labels (1.3.1)
  • Color not sole means of conveying info (1.4.1)
  • All functionality available via keyboard (2.1.1)
  • No keyboard traps (2.1.2)
  • Page has title (2.4.2)
  • Link purpose clear from text (2.4.4)

Level AA (should have):

  • Color contrast ≥4.5:1 for text (1.4.3)
  • Text resizable to 200% without loss (1.4.4)
  • Skip navigation links (2.4.1)
  • Focus visible on all interactive elements (2.4.7)
  • Consistent navigation (3.2.3)
  • Error identification (3.3.1)

Level AAA (nice to have):

  • Color contrast ≥7:1 (1.4.6)
  • Sign language for media (1.2.6)

3. Component-Level Audit

For each interactive component:

  • Proper ARIA roles and states
  • Focus management (modals, dropdowns, tabs)
  • Keyboard interaction patterns match WAI-ARIA practices
  • Screen reader announcements for dynamic content
  • Touch target size (44x44px minimum)

4. Automated Testing Integration

Recommend tools:

  • @axe-core/playwright or @axe-core/react for CI
  • eslint-plugin-jsx-a11y for lint-time checks
  • Lighthouse accessibility audit
  • NVDA/VoiceOver manual testing checklist

Output

## Accessibility Audit Report

**WCAG Target:** 2.2 Level AA
**Pages scanned:** 12 | **Components:** 45

### Compliance Score: 72/100

### 🔴 Critical (5)
1. **13 images missing alt text** across 8 pages
2. **Custom dropdown** has no keyboard navigation
3. **Modal** doesn't trap focus (Tab escapes to background)
4. **3 form inputs** missing label association
5. **Color contrast** fails on 2 button styles (3.2:1, need 4.5:1)

### 🟡 Warnings (8)
6. No skip navigation link
7. Focus indicator invisible on 4 interactive elements
8. Tab order illogical in settings form
[...]

### ✅ Passing
- Semantic HTML used for page structure
- ARIA landmarks present (main, nav, footer)
- Proper heading hierarchy (single h1, ordered nesting)
- Form error messages associated with inputs

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-08 03:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 182,123
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 679 📥 328,311
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,781