搜索

PythonReactSEOPDF
GitHub Skill

accessibility-review

Audit for WCAG 2.1 AA compliance including keyboard navigation, ARIA usage, color contrast, and screen reader support. Use when building UI components, reviewing forms, or checking accessibility of new features.

place-to-stand☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Accessibility Review

Audit components and pages for WCAG 2.1 AA compliance as specified in AGENTS.md.

Scope

Review the specified files for:

1. Semantic HTML
  • Proper heading hierarchy (h1 -> h2 -> h3, no skipping)
  • Use of semantic elements (nav, main, article, section, aside)
  • Lists for list content (ul, ol, dl)
  • Buttons for actions, links for navigation
  • Tables with proper headers and scope
2. Keyboard Accessibility
  • All interactive elements focusable
  • Logical tab order
  • Visible focus indicators (check for outline-none without replacement)
  • No keyboard traps
  • Skip links for navigation
  • Escape key closes modals/dialogs
3. ARIA Usage
  • ARIA only when semantic HTML insufficient
  • Proper ARIA roles, states, and properties
  • ARIA labels on icon-only buttons
  • Live regions for dynamic content
  • Proper dialog/modal ARIA patterns
4. Forms
  • Labels associated with inputs (htmlFor/id or wrapping)
  • Error messages linked to fields (aria-describedby)
  • Required fields indicated (aria-required)
  • Fieldset/legend for radio/checkbox groups
  • Autocomplete attributes where appropriate
5. Visual Design
  • Color contrast ratios (4.5:1 text, 3:1 UI components)
  • Not relying on color alone for meaning
  • Respects prefers-reduced-motion
  • Respects prefers-color-scheme
  • Text resizable to 200% without loss
6. Images & Media
  • Alt text on images (empty alt="" for decorative)
  • Captions/transcripts for video/audio
  • No auto-playing media with sound
7. Component-Specific (shadcn/Radix)
  • Radix primitives used correctly (they handle a11y)
  • Custom overrides don't break accessibility
  • Tooltips accessible to keyboard users
  • Dropdown menus with proper ARIA

Output Format

For each finding:

[WCAG: 1.1.1|2.1.1|etc] [LEVEL: A|AA|AAA]
File: path/to/component.tsx:lineNumber
Issue: Brief description
Impact: Who is affected and how
Fix: Code example or recommendation

Actions

  1. Read component files in scope
  2. Check for Radix/shadcn primitive usage
  3. Verify keyboard interaction patterns
  4. Analyze color usage and contrast
  5. Review form patterns

Post-Review

Generate:

  • Findings grouped by WCAG principle (Perceivable, Operable, Understandable, Robust)
  • Priority fixes (Level A before AA)
  • Component-specific recommendations
  • Testing checklist for manual verification

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!