スキル一覧に戻る
Soborbo

astro-a11y

by Soborbo

1🍴 0📅 2026年1月19日
GitHubで見るManusで実行

SKILL.md


name: astro-a11y description: Accessibility patterns for Astro lead generation sites. WCAG 2.1 AA compliance, screen readers, keyboard navigation, focus management, ARIA. Use for all accessibility implementation.

Astro Accessibility Skill

Purpose

Ensures WCAG 2.1 AA compliance for lead generation websites. Legal requirement under UK Equality Act 2010. Provides essential patterns for keyboard navigation, screen readers, focus management, and ARIA implementation.

Core Rules

  1. Keyboard navigable — All interactive elements reachable via Tab
  2. Screen reader friendly — Semantic HTML, proper ARIA
  3. Visible focus — Clear focus indicators on all elements
  4. Sufficient contrast — 4.5:1 text, 3:1 UI components
  5. No motion harm — Respect prefers-reduced-motion
  6. Semantic HTML first — Use native elements before ARIA
  7. Labels required — Every form input must have a label
  8. Alternative text — All images need appropriate alt text
ElementUse For
<button>Actions (submit, toggle, open modal)
<a href>Navigation (go to page, section)

Color Contrast Requirements

ElementMinimum Ratio
Body text4.5:1
Large text (18px+ or 14px bold)3:1
UI components3:1
Disabled elementsNo requirement

Testing Tools

  • Chrome DevTools → Rendering → Emulate vision deficiencies
  • axe DevTools extension
  • WAVE extension
  • Screen readers: NVDA (Windows), VoiceOver (Mac), JAWS

References

Testing Checklist

Keyboard

  • Tab through entire page — logical order?
  • All interactive elements reachable?
  • Focus visible on every element?
  • Can escape modals with Escape key?
  • Skip link works?

Screen Reader

  • Page title announced?
  • Headings hierarchy correct?
  • Images have alt text?
  • Form labels announced?
  • Errors announced (aria-live)?

Visual

  • Contrast passes (4.5:1)?
  • Text resizes to 200% without breaking?
  • Works without color alone?
  • Reduced motion respected?

Forbidden

  • <div> or <span> for interactive elements
  • outline: none without replacement focus style
  • tabindex greater than 0
  • ❌ Missing form labels
  • ❌ Color as only indicator
  • ❌ Auto-playing video/audio
  • ❌ CAPTCHA without alternative

Definition of Done

  • Skip link present on page
  • All forms have proper labels
  • Contrast ratios pass WCAG AA
  • Keyboard navigation works completely
  • axe DevTools shows 0 errors
  • Screen reader test passed
  • Reduced motion media query implemented
  • All images have appropriate alt text

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です