Accessibility Compliance

作者 aj-geddes3f5182cfd739無授權條款355 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫7 個月前更新

Implement WCAG 2.1/2.2 accessibility standards, screen reader compatibility, keyboard navigation, and a11y testing. Use when building inclusive web applications, ensuring regulatory compliance, or improving user experience for people with disabilities.

AI 產生的概覽

指導實作 WCAG 2.1/2.2 網頁無障礙、螢幕閱讀器相容與鍵盤導覽。

功能
此技能提供依循 WCAG 2.1/2.2 實作網頁無障礙的說明與參考指南,涵蓋語意化 HTML 與 ARIA、鍵盤導覽、焦點管理、色彩對比、螢幕閱讀器播報,以及無障礙的 React 元件。它附有元件範本與最佳實務的正反清單。產出為指引與程式碼模式,本身不執行任何工具。
適用情境
適用於建置面向大眾或強調包容性的網頁應用程式、追求 WCAG AA 或 AAA 合規、支援 NVDA、JAWS、VoiceOver 等螢幕閱讀器,或符合 ADA 與 Section 508 要求的情境。也適合無障礙稽核與純鍵盤導覽相關工作。
執行需求
不需要指令碼或工具,僅為說明與參考文件。代理能讀取隨附的參考指南與範本即可。

Accessibility Compliance

Table of Contents

Overview

Implement comprehensive accessibility features following WCAG guidelines to ensure your application is usable by everyone, including people with disabilities.

When to Use

  • Building public-facing web applications
  • Ensuring WCAG 2.1/2.2 AA or AAA compliance
  • Supporting screen readers (NVDA, JAWS, VoiceOver)
  • Implementing keyboard-only navigation
  • Meeting ADA, Section 508, or similar regulations
  • Improving SEO and overall user experience
  • Conducting accessibility audits

Quick Start

Minimal working example:

html
<!-- Bad: Non-semantic markup --><div class="button" onclick="submit()">Submit</div>
<!-- Good: Semantic HTML --><button type="submit" aria-label="Submit form">Submit</button>
<!-- Custom components with proper ARIA --><div  role="button"  tabindex="0"  aria-pressed="false"  onclick="toggle()"  onkeydown="handleKeyPress(event)">  Toggle Feature</div>
<!-- Form with proper labels and error handling --><form>  <label for="email">Email Address</label>  <input    id="email"    type="email"    name="email"    aria-required="true"// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Semantic HTML with ARIA [blocked]Semantic HTML with ARIA
React Component with Accessibility [blocked]React Component with Accessibility
Keyboard Navigation Handler [blocked]Keyboard Navigation Handler
Color Contrast Validator [blocked]Color Contrast Validator
Screen Reader Announcements [blocked]Screen Reader Announcements
Focus Management [blocked]Focus Management

Best Practices

✅ DO

  • Use semantic HTML elements
  • Provide text alternatives for images
  • Ensure sufficient color contrast (4.5:1 minimum)
  • Support keyboard navigation
  • Implement focus management
  • Test with screen readers
  • Use ARIA attributes correctly
  • Provide skip links
  • Make forms accessible with labels
  • Support text resizing up to 200%

❌ DON'T

  • Rely solely on color to convey information
  • Remove focus indicators
  • Use only mouse/touch interactions
  • Auto-play media without controls
  • Create keyboard traps
  • Use positive tabindex values
  • Override user preferences
  • Hide content only visually that should be hidden from screen readers

來源與署名

來源:aj-geddes/useful-ai-prompts位於skills/accessibility-compliance提交3f5182c

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架