accessibility
WCAG 2.2 AA complete checklist, keyboard paths, visible focus, semantic naming, contrast, screen reader, zoom/reflow, reduced motion
- License 许可
- MIT
- 所属仓库
- poppyTM/oride
- 最近更新
- 2026-09-30
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- accessibility
- description
- WCAG 2.2 AA complete checklist, keyboard paths, visible focus, semantic naming, contrast, screen reader, zoom/reflow, reduced motion
02 资源文件 11
- 参考文档checks/accessibility-checklist.md233 B
- 参考文档checks/wcag-2.2-aa-checklist.md249 B
- 参考文档examples/accessible_modal.html2.6 KB
- 参考文档examples/accessible-button.html99 B
- 参考文档manifest.json2.0 KB
- 参考文档references/wcag-2.2-guidelines.md1.9 KB
- 参考文档references/wcag-guidelines.md73 B
- 脚本scripts/axe_core_runner.js1.5 KB
- 脚本scripts/axe-core-scan.sh58 B
- 脚本scripts/verify.sh3.6 KB
- 参考文档templates/wireframe-spec.md1.7 KB
03 SKILL.md 正文
Accessibility Engineering
1. Semantic HTML
Use semantic HTML elements (nav, main, article, button) instead of generic divs. This provides inherent meaning to assistive technologies. Avoid using aria-roles to fix poor markup; fix the markup instead.
2. Keyboard Navigation
Ensure all interactive elements are reachable and operable via keyboard alone. Verify logical tab order matching the visual flow. Avoid keyboard traps where focus gets stuck in a component.
3. Visible Focus
Provide highly visible focus indicators for all interactive elements. Do not remove outlines (outline: none) without providing a strong visual alternative. Focus should be evident without relying solely on color.
4. Contrast Ratios
Maintain strict WCAG 2.2 AA contrast ratios. Text requires a contrast ratio of at least 4.5:1 against its background. Large text requires 3:1. UI components and graphical objects require a 3:1 contrast ratio.
5. Screen Reader Support
Test interfaces with popular screen readers (NVDA, VoiceOver). Ensure dynamic content updates (like notifications or loading states) are announced using aria-live regions appropriately.
6. Zoom and Reflow
Ensure content supports zooming up to 200% without loss of functionality. Implement responsive designs that reflow content into a single column at 400% zoom without requiring horizontal scrolling.
7. Reduced Motion
Respect user preferences for reduced motion (@media (prefers-reduced-motion)). Disable non-essential animations, parallax effects, and smooth scrolling for these users to prevent vestibular disorders.
8. Forms and Labels
Every input must have a programmatic association with a visible label using the for and id attributes. Error messages must be clearly linked to the specific input field that caused the error.
9. Alternative Text
Provide meaningful alt text for informational images. Use empty alt="" for purely decorative images. Ensure complex charts or graphs have comprehensive text alternatives.
10. Cognitive Accessibility
Write clear, simple copy. Avoid jargon. Provide predictable navigation patterns. Ensure critical actions can be easily reversed or confirmed to minimize user error anxiety.
04 同仓库更多 Skills
zoom-reflow
暂无简介
wireframe-styleguide
暂无简介
visual-regression
Pixel-by-pixel snapshot testing, Playwright integration, dynamic content masking, deterministic font rendering, and cross-browser CI gates
ui-implementation
Component-driven UI implementation, multi-state matrix (default, hover, focus-visible, active, disabled, loading, empty, error), DTCG design tokens, responsive layout contracts, and accessibility tree mapping.
tui-editor-engine
Text buffer and editing semantics for a terminal code editor — index conversion, transaction-first editing, multi-cursor invariants, undo grouping, and large-file behaviour.
tree-sitter-context-indexing
暂无简介