[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79M5SGFVJ85JSTCAGQNFFSB":3,"skill-same:01M79M5SGFVJ85JSTCAGQNFFSB":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M79M5SGFVJ85JSTCAGQNFFSB","accessibility",null,"Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to \"improve accessibility\", \"a11y audit\", \"WCAG compliance\", \"screen reader support\", \"keyboard navigation\", or \"make accessible\".","eladperlman\u002FFinniHealthTakeHome","eladperlman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F77819526?v=4","01M79M5GZ306CZ58RMY9VQGC5H","Elad Perlman","01M79M5H0DJN5Y8F3HZAH2WR3B",0,"MIT","https:\u002F\u002Fgithub.com\u002Feladperlman\u002FFinniHealthTakeHome\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Faccessibility\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\r\nname: accessibility\r\ndescription: Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to \"improve accessibility\", \"a11y audit\", \"WCAG compliance\", \"screen reader support\", \"keyboard navigation\", or \"make accessible\".\r\nlicense: MIT\r\nmetadata:\r\n  author: web-quality-skills\r\n  version: \"1.1\"\r\n---\r\n\r\n# Accessibility (a11y)\r\n\r\nComprehensive accessibility guidelines based on WCAG 2.2 and Lighthouse accessibility audits. Goal: make content usable by everyone, including people with disabilities.\r\n\r\n## WCAG Principles: POUR\r\n\r\n| Principle | Description |\r\n|-----------|-------------|\r\n| **P**erceivable | Content can be perceived through different senses |\r\n| **O**perable | Interface can be operated by all users |\r\n| **U**nderstandable | Content and interface are understandable |\r\n| **R**obust | Content works with assistive technologies |\r\n\r\n## Conformance levels\r\n\r\n| Level | Requirement | Target |\r\n|-------|-------------|--------|\r\n| **A** | Minimum accessibility | Must pass |\r\n| **AA** | Standard compliance | Should pass (legal requirement in many jurisdictions) |\r\n| **AAA** | Enhanced accessibility | Nice to have |\r\n\r\n---\r\n\r\n## Perceivable\r\n\r\n### Text alternatives (1.1)\r\n\r\n**Images require alt text:**\r\n```html\r\n\u003C!-- ❌ Missing alt -->\r\n\u003Cimg src=\"chart.png\">\r\n\r\n\u003C!-- ✅ Descriptive alt -->\r\n\u003Cimg src=\"chart.png\" alt=\"Bar chart showing 40% increase in Q3 sales\">\r\n\r\n\u003C!-- ✅ Decorative image (empty alt) -->\r\n\u003Cimg src=\"decorative-border.png\" alt=\"\" role=\"presentation\">\r\n\r\n\u003C!-- ✅ Complex image with longer description -->\r\n\u003Cfigure>\r\n  \u003Cimg src=\"infographic.png\" alt=\"2024 market trends infographic\" \r\n       aria-describedby=\"infographic-desc\">\r\n  \u003Cfigcaption id=\"infographic-desc\">\r\n    \u003C!-- Detailed description -->\r\n  \u003C\u002Ffigcaption>\r\n\u003C\u002Ffigure>\r\n```\r\n\r\n**Icon buttons need accessible names:**\r\n```html\r\n\u003C!-- ❌ No accessible name -->\r\n\u003Cbutton>\u003Csvg>\u003C!-- menu icon -->\u003C\u002Fsvg>\u003C\u002Fbutton>\r\n\r\n\u003C!-- ✅ Using aria-label -->\r\n\u003Cbutton aria-label=\"Open menu\">\r\n  \u003Csvg aria-hidden=\"true\">\u003C!-- menu icon -->\u003C\u002Fsvg>\r\n\u003C\u002Fbutton>\r\n\r\n\u003C!-- ✅ Using visually hidden text -->\r\n\u003Cbutton>\r\n  \u003Csvg aria-hidden=\"true\">\u003C!-- menu icon -->\u003C\u002Fsvg>\r\n  \u003Cspan class=\"visually-hidden\">Open menu\u003C\u002Fspan>\r\n\u003C\u002Fbutton>\r\n```\r\n\r\n**Visually hidden class:**\r\n```css\r\n.visually-hidden {\r\n  position: absolute;\r\n  width: 1px;\r\n  height: 1px;\r\n  padding: 0;\r\n  margin: -1px;\r\n  overflow: hidden;\r\n  clip: rect(0, 0, 0, 0);\r\n  white-space: nowrap;\r\n  border: 0;\r\n}\r\n```\r\n\r\n### Color contrast (1.4.3, 1.4.6)\r\n\r\n| Text Size | AA minimum | AAA enhanced |\r\n|-----------|------------|--------------|\r\n| Normal text (\u003C 18px \u002F \u003C 14px bold) | 4.5:1 | 7:1 |\r\n| Large text (≥ 18px \u002F ≥ 14px bold) | 3:1 | 4.5:1 |\r\n| UI components & graphics | 3:1 | 3:1 |\r\n\r\n```css\r\n\u002F* ❌ Low contrast (2.5:1) *\u002F\r\n.low-contrast {\r\n  color: #999;\r\n  background: #fff;\r\n}\r\n\r\n\u002F* ✅ Sufficient contrast (7:1) *\u002F\r\n.high-contrast {\r\n  color: #333;\r\n  background: #fff;\r\n}\r\n\r\n\u002F* ✅ Focus states need contrast too (3:1 against background, WCAG 1.4.11) *\u002F\r\n:focus-visible {\r\n  outline: 2px solid currentColor;\r\n  outline-offset: 2px;\r\n}\r\n```\r\n\r\n**Don't rely on color alone:**\r\n```html\r\n\u003C!-- ❌ Only color indicates error -->\r\n\u003Cinput class=\"error-border\">\r\n\u003Cstyle>.error-border { border-color: red; }\u003C\u002Fstyle>\r\n\r\n\u003C!-- ✅ Color + icon + text -->\r\n\u003Cdiv class=\"field-error\">\r\n  \u003Cinput aria-invalid=\"true\" aria-describedby=\"email-error\">\r\n  \u003Cspan id=\"email-error\" class=\"error-message\">\r\n    \u003Csvg aria-hidden=\"true\">\u003C!-- error icon -->\u003C\u002Fsvg>\r\n    Please enter a valid email address\r\n  \u003C\u002Fspan>\r\n\u003C\u002Fdiv>\r\n```\r\n\r\n### Media alternatives (1.2)\r\n\r\n```html\r\n\u003C!-- Video with captions -->\r\n\u003Cvideo controls>\r\n  \u003Csource src=\"video.mp4\" type=\"video\u002Fmp4\">\r\n  \u003Ctrack kind=\"captions\" src=\"captions.vtt\" srclang=\"en\" label=\"English\" default>\r\n  \u003Ctrack kind=\"descriptions\" src=\"descriptions.vtt\" srclang=\"en\" label=\"Descriptions\">\r\n\u003C\u002Fvideo>\r\n\r\n\u003C!-- Audio with transcript -->\r\n\u003Caudio controls>\r\n  \u003Csource src=\"podcast.mp3\" type=\"audio\u002Fmp3\">\r\n\u003C\u002Faudio>\r\n\u003Cdetails>\r\n  \u003Csummary>Transcript\u003C\u002Fsummary>\r\n  \u003Cp>Full transcript text...\u003C\u002Fp>\r\n\u003C\u002Fdetails>\r\n```\r\n\r\n---\r\n\r\n## Operable\r\n\r\n### Keyboard accessible (2.1)\r\n\r\n**All functionality must be keyboard accessible.** Prefer native interactive elements — `\u003Cbutton>`, `\u003Ca href>`, and form controls handle Enter\u002FSpace activation, focus, and assistive-tech semantics for free. Only add manual keyboard handling when you cannot use a native element.\r\n\r\n```html\r\n\u003C!-- ❌ Non-interactive element with click only: not focusable, no keyboard activation -->\r\n\u003Cdiv class=\"card\" onclick=\"handleAction()\">Open\u003C\u002Fdiv>\r\n\r\n\u003C!-- ✅ Best: use a native button -->\r\n\u003Cbutton type=\"button\" onclick=\"handleAction()\">Open\u003C\u002Fbutton>\r\n```\r\n\r\n```javascript\r\n\u002F\u002F ✅ When you MUST use a non-interactive element (e.g. div with role=\"button\"),\r\n\u002F\u002F make it focusable AND handle keyboard activation. Do NOT add this to a native\r\n\u002F\u002F \u003Cbutton> — Enter\u002FSpace already fire click, so you'd double-trigger.\r\nelement.setAttribute('role', 'button');\r\nelement.setAttribute('tabindex', '0');\r\nelement.addEventListener('click', handleAction);\r\nelement.addEventListener('keydown', (e) => {\r\n  if (e.key === 'Enter' || e.key === ' ') {\r\n    e.preventDefault();\r\n    handleAction();\r\n  }\r\n});\r\n```\r\n\r\n**No keyboard traps.** Users must be able to Tab into and out of every component. Use the [modal focus trap pattern](references\u002FA11Y-PATTERNS.md#modal-focus-trap) for dialogs—the native `\u003Cdialog>` element handles this automatically.\r\n\r\n### Focus visible (2.4.7)\r\n\r\n```css\r\n\u002F* ❌ Never remove focus outlines *\u002F\r\n*:focus { outline: none; }\r\n\r\n\u002F* ✅ Use :focus-visible for keyboard-only focus *\u002F\r\n:focus {\r\n  outline: none;\r\n}\r\n\r\n:focus-visible {\r\n  outline: 2px solid currentColor; \u002F* inherits text color → already contrast-checked *\u002F\r\n  outline-offset: 2px;\r\n}\r\n\r\n\u002F* ✅ Or pick a brand color and verify ≥3:1 contrast against every background it lands on *\u002F\r\nbutton:focus-visible {\r\n  box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.5);\r\n}\r\n```\r\n\r\n### Focus not obscured (2.4.11) — new in 2.2\r\n\r\nWhen an element receives keyboard focus, it must not be entirely hidden by other author-created content such as sticky headers, footers, or overlapping panels. At Level AAA (2.4.12), no part of the focused element may be hidden.\r\n\r\n```css\r\n\u002F* ✅ Account for sticky headers when scrolling to focused elements *\u002F\r\n:target {\r\n  scroll-margin-top: 80px;\r\n}\r\n\r\n\u002F* ✅ Ensure focused items clear fixed\u002Fsticky bars *\u002F\r\n:focus {\r\n  scroll-margin-top: 80px;\r\n  scroll-margin-bottom: 60px;\r\n}\r\n```\r\n\r\n### Skip links (2.4.1)\r\n\r\nProvide a skip link so keyboard users can bypass repetitive navigation. See the [skip link pattern](references\u002FA11Y-PATTERNS.md#skip-link) for full markup and styles.\r\n\r\n### Target size (2.5.8) — new in 2.2\r\n\r\nInteractive targets must be at least **24 × 24 CSS pixels** (AA). Exceptions: inline text links, elements where the browser controls the size, and targets where a 24px circle centered on the bounding box does not overlap another target.\r\n\r\n```css\r\n\u002F* ✅ Minimum target size *\u002F\r\nbutton,\r\n[role=\"button\"],\r\ninput[type=\"checkbox\"] + label,\r\ninput[type=\"radio\"] + label {\r\n  min-width: 24px;\r\n  min-height: 24px;\r\n}\r\n\r\n\u002F* ✅ Comfortable target size (recommended 44×44) *\u002F\r\n.touch-target {\r\n  min-width: 44px;\r\n  min-height: 44px;\r\n  display: inline-flex;\r\n  align-items: center;\r\n  justify-content: center;\r\n}\r\n```\r\n\r\n### Dragging movements (2.5.7) — new in 2.2\r\n\r\nAny action that requires dragging must have a single-pointer alternative (e.g., buttons, inputs). See the [dragging movements pattern](references\u002FA11Y-PATTERNS.md#dragging-movements) for a sortable-list example.\r\n\r\n### Timing (2.2)\r\n\r\n```javascript\r\n\u002F\u002F Allow users to extend time limits\r\nfunction showSessionWarning() {\r\n  const modal = createModal({\r\n    title: 'Session Expiring',\r\n    content: 'Your session will expire in 2 minutes.',\r\n    actions: [\r\n      { label: 'Extend session', action: extendSession },\r\n      { label: 'Log out', action: logout }\r\n    ],\r\n    timeout: 120000\r\n  });\r\n}\r\n```\r\n\r\n### Motion (2.3)\r\n\r\n```css\r\n\u002F* Respect reduced motion preference *\u002F\r\n@media (prefers-reduced-motion: reduce) {\r\n  *,\r\n  *::before,\r\n  *::after {\r\n    animation-duration: 0.01ms !important;\r\n    animation-iteration-count: 1 !important;\r\n    transition-duration: 0.01ms !important;\r\n    scroll-behavior: auto !important;\r\n  }\r\n}\r\n```\r\n\r\n---\r\n\r\n## Understandable\r\n\r\n### Page language (3.1.1)\r\n\r\n```html\r\n\u003C!-- ❌ No language specified -->\r\n\u003Chtml>\r\n\r\n\u003C!-- ✅ Language specified -->\r\n\u003Chtml lang=\"en\">\r\n\r\n\u003C!-- ✅ Language changes within page -->\r\n\u003Cp>The French word for hello is \u003Cspan lang=\"fr\">bonjour\u003C\u002Fspan>.\u003C\u002Fp>\r\n```\r\n\r\n### Consistent navigation (3.2.3)\r\n\r\n```html\r\n\u003C!-- Navigation should be consistent across pages -->\r\n\u003Cnav aria-label=\"Main\">\r\n  \u003Cul>\r\n    \u003Cli>\u003Ca href=\"\u002F\" aria-current=\"page\">Home\u003C\u002Fa>\u003C\u002Fli>\r\n    \u003Cli>\u003Ca href=\"\u002Fproducts\">Products\u003C\u002Fa>\u003C\u002Fli>\r\n    \u003Cli>\u003Ca href=\"\u002Fabout\">About\u003C\u002Fa>\u003C\u002Fli>\r\n  \u003C\u002Ful>\r\n\u003C\u002Fnav>\r\n```\r\n\r\n### Consistent help (3.2.6) — new in 2.2\r\n\r\nIf a help mechanism (contact info, chat widget, FAQ link, self-help option) is repeated across multiple pages, it must appear in the **same relative order** each time. Users who rely on consistent placement shouldn't have to hunt for help on every page.\r\n\r\n### Form labels (3.3.2)\r\n\r\nEvery input needs a programmatically associated label. See the [form labels pattern](references\u002FA11Y-PATTERNS.md#form-labels) for explicit, implicit, and instructional examples.\r\n\r\n### Error handling (3.3.1, 3.3.3)\r\n\r\nAnnounce errors to screen readers with `role=\"alert\"` or `aria-live`, set `aria-invalid=\"true\"` on invalid fields, and focus the first error on submit. See the [error handling pattern](references\u002FA11Y-PATTERNS.md#error-handling) for full markup and JS.\r\n\r\n### Redundant entry (3.3.7) — new in 2.2\r\n\r\nDon't force users to re-enter information they already provided in the same session. Auto-populate from earlier steps, or let users select from previously entered values. Exceptions: security re-confirmation and content that has expired.\r\n\r\n```html\r\n\u003C!-- ✅ Auto-fill shipping address from billing -->\r\n\u003Cfieldset>\r\n  \u003Clegend>Shipping address\u003C\u002Flegend>\r\n  \u003Clabel>\r\n    \u003Cinput type=\"checkbox\" id=\"same-as-billing\" checked>\r\n    Same as billing address\r\n  \u003C\u002Flabel>\r\n  \u003C!-- Fields auto-populated when checked -->\r\n\u003C\u002Ffieldset>\r\n```\r\n\r\n### Accessible authentication (3.3.8) — new in 2.2\r\n\r\nLogin flows must not rely on cognitive function tests (e.g., remembering a password, solving a puzzle) unless at least one of:\r\n- A copy-paste or autofill mechanism is available\r\n- An alternative method exists (e.g., passkey, SSO, email link)\r\n- The test uses object recognition or personal content (AA only; AAA removes this exception)\r\n\r\n```html\r\n\u003C!-- ✅ Allow paste in password fields -->\r\n\u003Cinput type=\"password\" id=\"password\" autocomplete=\"current-password\">\r\n\r\n\u003C!-- ✅ Offer passwordless alternatives -->\r\n\u003Cbutton type=\"button\">Sign in with passkey\u003C\u002Fbutton>\r\n\u003Cbutton type=\"button\">Email me a login link\u003C\u002Fbutton>\r\n```\r\n\r\n---\r\n\r\n## Robust\r\n\r\n### ARIA usage (4.1.2)\r\n\r\n**Prefer native elements:**\r\n```html\r\n\u003C!-- ❌ ARIA role on div -->\r\n\u003Cdiv role=\"button\" tabindex=\"0\">Click me\u003C\u002Fdiv>\r\n\r\n\u003C!-- ✅ Native button -->\r\n\u003Cbutton>Click me\u003C\u002Fbutton>\r\n\r\n\u003C!-- ❌ ARIA checkbox -->\r\n\u003Cdiv role=\"checkbox\" aria-checked=\"false\">Option\u003C\u002Fdiv>\r\n\r\n\u003C!-- ✅ Native checkbox -->\r\n\u003Clabel>\u003Cinput type=\"checkbox\"> Option\u003C\u002Flabel>\r\n```\r\n\r\n**When ARIA is needed,** use the correct roles and states. See the [ARIA tabs pattern](references\u002FA11Y-PATTERNS.md#aria-tabs) for a complete tablist example.\r\n\r\n### Live regions (4.1.3)\r\n\r\nUse `aria-live` regions to announce dynamic content changes without moving focus. See the [live regions pattern](references\u002FA11Y-PATTERNS.md#live-regions-and-notifications) for markup and a `showNotification()` helper.\r\n\r\n---\r\n\r\n## Testing checklist\r\n\r\n### Automated testing\r\n```bash\r\n# Lighthouse accessibility audit\r\nnpx lighthouse https:\u002F\u002Fexample.com --only-categories=accessibility\r\n\r\n# axe-core\r\nnpm install @axe-core\u002Fcli -g\r\naxe https:\u002F\u002Fexample.com\r\n```\r\n\r\n### Manual testing\r\n\r\n- [ ] **Keyboard navigation:** Tab through entire page, use Enter\u002FSpace to activate\r\n- [ ] **Screen reader:** Test with VoiceOver (Mac), NVDA (Windows), or TalkBack (Android)\r\n- [ ] **Zoom:** Content usable at 200% zoom\r\n- [ ] **High contrast:** Test with Windows High Contrast Mode\r\n- [ ] **Reduced motion:** Test with `prefers-reduced-motion: reduce`\r\n- [ ] **Focus order:** Logical and follows visual order\r\n- [ ] **Target size:** Interactive elements meet 24×24px minimum\r\n\r\nSee the [screen reader commands reference](references\u002FA11Y-PATTERNS.md#screen-reader-commands) for VoiceOver and NVDA shortcuts.\r\n\r\n---\r\n\r\n## Common issues by impact\r\n\r\n### Critical (fix immediately)\r\n1. Missing form labels\r\n2. Missing image alt text\r\n3. Insufficient color contrast\r\n4. Keyboard traps\r\n5. No focus indicators\r\n\r\n### Serious (fix before launch)\r\n1. Missing page language\r\n2. Missing heading structure\r\n3. Non-descriptive link text\r\n4. Auto-playing media\r\n5. Missing skip links\r\n\r\n### Moderate (fix soon)\r\n1. Missing ARIA labels on icons\r\n2. Inconsistent navigation\r\n3. Missing error identification\r\n4. Timing without controls\r\n5. Missing landmark regions\r\n\r\n## References\r\n\r\n- [WCAG 2.2 Quick Reference](https:\u002F\u002Fwww.w3.org\u002FWAI\u002FWCAG22\u002Fquickref\u002F)\r\n- [WAI-ARIA Authoring Practices](https:\u002F\u002Fwww.w3.org\u002FWAI\u002FARIA\u002Fapg\u002F)\r\n- [Deque axe Rules](https:\u002F\u002Fdequeuniversity.com\u002Frules\u002Faxe\u002F)\r\n- [Web Quality Audit](..\u002Fweb-quality-audit\u002FSKILL.md)\r\n- [WCAG criteria reference](references\u002FWCAG.md)\r\n- [Accessibility code patterns](references\u002FA11Y-PATTERNS.md)\r\n","# Accessibility (a11y)\r\n\r\nComprehensive accessibility guidelines based on WCAG 2.2 and Lighthouse accessibility audits. Goal: make content usable by everyone, including people with disabilities.\r\n\r\n## WCAG Principles: POUR\r\n\r\n| Principle | Description |\r\n|-----------|-------------|\r\n| **P**erceivable | Content can be perceived through different senses |\r\n| **O**perable | Interface can be operated by all users |\r\n| **U**nderstandable | Content and interface are understandable |\r\n| **R**obust | Content works with assistive technologies |\r\n\r\n## Conformance levels\r\n\r\n| Level | Requirement | Target |\r\n|-------|-------------|--------|\r\n| **A** | Minimum accessibility | Must pass |\r\n| **AA** | Standard compliance | Should pass (legal requirement in many jurisdictions) |\r\n| **AAA** | Enhanced accessibility | Nice to have |\r\n\r\n---\r\n\r\n## Perceivable\r\n\r\n### Text alternatives (1.1)\r\n\r\n**Images require alt text:**\r\n```html\r\n\u003C!-- ❌ Missing alt -->\r\n\u003Cimg src=\"chart.png\">\r\n\r\n\u003C!-- ✅ Descriptive alt -->\r\n\u003Cimg src=\"chart.png\" alt=\"Bar chart showing 40% increase in Q3 sales\">\r\n\r\n\u003C!-- ✅ Decorative image (empty alt) -->\r\n\u003Cimg src=\"decorative-border.png\" alt=\"\" role=\"presentation\">\r\n\r\n\u003C!-- ✅ Complex image with longer description -->\r\n\u003Cfigure>\r\n  \u003Cimg src=\"infographic.png\" alt=\"2024 market trends infographic\" \r\n       aria-describedby=\"infographic-desc\">\r\n  \u003Cfigcaption id=\"infographic-desc\">\r\n    \u003C!-- Detailed description -->\r\n  \u003C\u002Ffigcaption>\r\n\u003C\u002Ffigure>\r\n```\r\n\r\n**Icon buttons need accessible names:**\r\n```html\r\n\u003C!-- ❌ No accessible name -->\r\n\u003Cbutton>\u003Csvg>\u003C!-- menu icon -->\u003C\u002Fsvg>\u003C\u002Fbutton>\r\n\r\n\u003C!-- ✅ Using aria-label -->\r\n\u003Cbutton aria-label=\"Open menu\">\r\n  \u003Csvg aria-hidden=\"true\">\u003C!-- menu icon -->\u003C\u002Fsvg>\r\n\u003C\u002Fbutton>\r\n\r\n\u003C!-- ✅ Using visually hidden text -->\r\n\u003Cbutton>\r\n  \u003Csvg aria-hidden=\"true\">\u003C!-- menu icon -->\u003C\u002Fsvg>\r\n  \u003Cspan class=\"visually-hidden\">Open menu\u003C\u002Fspan>\r\n\u003C\u002Fbutton>\r\n```\r\n\r\n**Visually hidden class:**\r\n```css\r\n.visually-hidden {\r\n  position: absolute;\r\n  width: 1px;\r\n  height: 1px;\r\n  padding: 0;\r\n  margin: -1px;\r\n  overflow: hidden;\r\n  clip: rect(0, 0, 0, 0);\r\n  white-space: nowrap;\r\n  border: 0;\r\n}\r\n```\r\n\r\n### Color contrast (1.4.3, 1.4.6)\r\n\r\n| Text Size | AA minimum | AAA enhanced |\r\n|-----------|------------|--------------|\r\n| Normal text (\u003C 18px \u002F \u003C 14px bold) | 4.5:1 | 7:1 |\r\n| Large text (≥ 18px \u002F ≥ 14px bold) | 3:1 | 4.5:1 |\r\n| UI components & graphics | 3:1 | 3:1 |\r\n\r\n```css\r\n\u002F* ❌ Low contrast (2.5:1) *\u002F\r\n.low-contrast {\r\n  color: #999;\r\n  background: #fff;\r\n}\r\n\r\n\u002F* ✅ Sufficient contrast (7:1) *\u002F\r\n.high-contrast {\r\n  color: #333;\r\n  background: #fff;\r\n}\r\n\r\n\u002F* ✅ Focus states need contrast too (3:1 against background, WCAG 1.4.11) *\u002F\r\n:focus-visible {\r\n  outline: 2px solid currentColor;\r\n  outline-offset: 2px;\r\n}\r\n```\r\n\r\n**Don't rely on color alone:**\r\n```html\r\n\u003C!-- ❌ Only color indicates error -->\r\n\u003Cinput class=\"error-border\">\r\n\u003Cstyle>.error-border { border-color: red; }\u003C\u002Fstyle>\r\n\r\n\u003C!-- ✅ Color + icon + text -->\r\n\u003Cdiv class=\"field-error\">\r\n  \u003Cinput aria-invalid=\"true\" aria-describedby=\"email-error\">\r\n  \u003Cspan id=\"email-error\" class=\"error-message\">\r\n    \u003Csvg aria-hidden=\"true\">\u003C!-- error icon -->\u003C\u002Fsvg>\r\n    Please enter a valid email address\r\n  \u003C\u002Fspan>\r\n\u003C\u002Fdiv>\r\n```\r\n\r\n### Media alternatives (1.2)\r\n\r\n```html\r\n\u003C!-- Video with captions -->\r\n\u003Cvideo controls>\r\n  \u003Csource src=\"video.mp4\" type=\"video\u002Fmp4\">\r\n  \u003Ctrack kind=\"captions\" src=\"captions.vtt\" srclang=\"en\" label=\"English\" default>\r\n  \u003Ctrack kind=\"descriptions\" src=\"descriptions.vtt\" srclang=\"en\" label=\"Descriptions\">\r\n\u003C\u002Fvideo>\r\n\r\n\u003C!-- Audio with transcript -->\r\n\u003Caudio controls>\r\n  \u003Csource src=\"podcast.mp3\" type=\"audio\u002Fmp3\">\r\n\u003C\u002Faudio>\r\n\u003Cdetails>\r\n  \u003Csummary>Transcript\u003C\u002Fsummary>\r\n  \u003Cp>Full transcript text...\u003C\u002Fp>\r\n\u003C\u002Fdetails>\r\n```\r\n\r\n---\r\n\r\n## Operable\r\n\r\n### Keyboard accessible (2.1)\r\n\r\n**All functionality must be keyboard accessible.** Prefer native interactive elements — `\u003Cbutton>`, `\u003Ca href>`, and form controls handle Enter\u002FSpace activation, focus, and assistive-tech semantics for free. Only add manual keyboard handling when you cannot use a native element.\r\n\r\n```html\r\n\u003C!-- ❌ Non-interactive element with click only: not focusable, no keyboard activation -->\r\n\u003Cdiv class=\"card\" onclick=\"handleAction()\">Open\u003C\u002Fdiv>\r\n\r\n\u003C!-- ✅ Best: use a native button -->\r\n\u003Cbutton type=\"button\" onclick=\"handleAction()\">Open\u003C\u002Fbutton>\r\n```\r\n\r\n```javascript\r\n\u002F\u002F ✅ When you MUST use a non-interactive element (e.g. div with role=\"button\"),\r\n\u002F\u002F make it focusable AND handle keyboard activation. Do NOT add this to a native\r\n\u002F\u002F \u003Cbutton> — Enter\u002FSpace already fire click, so you'd double-trigger.\r\nelement.setAttribute('role', 'button');\r\nelement.setAttribute('tabindex', '0');\r\nelement.addEventListener('click', handleAction);\r\nelement.addEventListener('keydown', (e) => {\r\n  if (e.key === 'Enter' || e.key === ' ') {\r\n    e.preventDefault();\r\n    handleAction();\r\n  }\r\n});\r\n```\r\n\r\n**No keyboard traps.** Users must be able to Tab into and out of every component. Use the [modal focus trap pattern](references\u002FA11Y-PATTERNS.md#modal-focus-trap) for dialogs—the native `\u003Cdialog>` element handles this automatically.\r\n\r\n### Focus visible (2.4.7)\r\n\r\n```css\r\n\u002F* ❌ Never remove focus outlines *\u002F\r\n*:focus { outline: none; }\r\n\r\n\u002F* ✅ Use :focus-visible for keyboard-only focus *\u002F\r\n:focus {\r\n  outline: none;\r\n}\r\n\r\n:focus-visible {\r\n  outline: 2px solid currentColor; \u002F* inherits text color → already contrast-checked *\u002F\r\n  outline-offset: 2px;\r\n}\r\n\r\n\u002F* ✅ Or pick a brand color and verify ≥3:1 contrast against every background it lands on *\u002F\r\nbutton:focus-visible {\r\n  box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.5);\r\n}\r\n```\r\n\r\n### Focus not obscured (2.4.11) — new in 2.2\r\n\r\nWhen an element receives keyboard focus, it must not be entirely hidden by other author-created content such as sticky headers, footers, or overlapping panels. At Level AAA (2.4.12), no part of the focused element may be hidden.\r\n\r\n```css\r\n\u002F* ✅ Account for sticky headers when scrolling to focused elements *\u002F\r\n:target {\r\n  scroll-margin-top: 80px;\r\n}\r\n\r\n\u002F* ✅ Ensure focused items clear fixed\u002Fsticky bars *\u002F\r\n:focus {\r\n  scroll-margin-top: 80px;\r\n  scroll-margin-bottom: 60px;\r\n}\r\n```\r\n\r\n### Skip links (2.4.1)\r\n\r\nProvide a skip link so keyboard users can bypass repetitive navigation. See the [skip link pattern](references\u002FA11Y-PATTERNS.md#skip-link) for full markup and styles.\r\n\r\n### Target size (2.5.8) — new in 2.2\r\n\r\nInteractive targets must be at least **24 × 24 CSS pixels** (AA). Exceptions: inline text links, elements where the browser controls the size, and targets where a 24px circle centered on the bounding box does not overlap another target.\r\n\r\n```css\r\n\u002F* ✅ Minimum target size *\u002F\r\nbutton,\r\n[role=\"button\"],\r\ninput[type=\"checkbox\"] + label,\r\ninput[type=\"radio\"] + label {\r\n  min-width: 24px;\r\n  min-height: 24px;\r\n}\r\n\r\n\u002F* ✅ Comfortable target size (recommended 44×44) *\u002F\r\n.touch-target {\r\n  min-width: 44px;\r\n  min-height: 44px;\r\n  display: inline-flex;\r\n  align-items: center;\r\n  justify-content: center;\r\n}\r\n```\r\n\r\n### Dragging movements (2.5.7) — new in 2.2\r\n\r\nAny action that requires dragging must have a single-pointer alternative (e.g., buttons, inputs). See the [dragging movements pattern](references\u002FA11Y-PATTERNS.md#dragging-movements) for a sortable-list example.\r\n\r\n### Timing (2.2)\r\n\r\n```javascript\r\n\u002F\u002F Allow users to extend time limits\r\nfunction showSessionWarning() {\r\n  const modal = createModal({\r\n    title: 'Session Expiring',\r\n    content: 'Your session will expire in 2 minutes.',\r\n    actions: [\r\n      { label: 'Extend session', action: extendSession },\r\n      { label: 'Log out', action: logout }\r\n    ],\r\n    timeout: 120000\r\n  });\r\n}\r\n```\r\n\r\n### Motion (2.3)\r\n\r\n```css\r\n\u002F* Respect reduced motion preference *\u002F\r\n@media (prefers-reduced-motion: reduce) {\r\n  *,\r\n  *::before,\r\n  *::after {\r\n    animation-duration: 0.01ms !important;\r\n    animation-iteration-count: 1 !important;\r\n    transition-duration: 0.01ms !important;\r\n    scroll-behavior: auto !important;\r\n  }\r\n}\r\n```\r\n\r\n---\r\n\r\n## Understandable\r\n\r\n### Page language (3.1.1)\r\n\r\n```html\r\n\u003C!-- ❌ No language specified -->\r\n\u003Chtml>\r\n\r\n\u003C!-- ✅ Language specified -->\r\n\u003Chtml lang=\"en\">\r\n\r\n\u003C!-- ✅ Language changes within page -->\r\n\u003Cp>The French word for hello is \u003Cspan lang=\"fr\">bonjour\u003C\u002Fspan>.\u003C\u002Fp>\r\n```\r\n\r\n### Consistent navigation (3.2.3)\r\n\r\n```html\r\n\u003C!-- Navigation should be consistent across pages -->\r\n\u003Cnav aria-label=\"Main\">\r\n  \u003Cul>\r\n    \u003Cli>\u003Ca href=\"\u002F\" aria-current=\"page\">Home\u003C\u002Fa>\u003C\u002Fli>\r\n    \u003Cli>\u003Ca href=\"\u002Fproducts\">Products\u003C\u002Fa>\u003C\u002Fli>\r\n    \u003Cli>\u003Ca href=\"\u002Fabout\">About\u003C\u002Fa>\u003C\u002Fli>\r\n  \u003C\u002Ful>\r\n\u003C\u002Fnav>\r\n```\r\n\r\n### Consistent help (3.2.6) — new in 2.2\r\n\r\nIf a help mechanism (contact info, chat widget, FAQ link, self-help option) is repeated across multiple pages, it must appear in the **same relative order** each time. Users who rely on consistent placement shouldn't have to hunt for help on every page.\r\n\r\n### Form labels (3.3.2)\r\n\r\nEvery input needs a programmatically associated label. See the [form labels pattern](references\u002FA11Y-PATTERNS.md#form-labels) for explicit, implicit, and instructional examples.\r\n\r\n### Error handling (3.3.1, 3.3.3)\r\n\r\nAnnounce errors to screen readers with `role=\"alert\"` or `aria-live`, set `aria-invalid=\"true\"` on invalid fields, and focus the first error on submit. See the [error handling pattern](references\u002FA11Y-PATTERNS.md#error-handling) for full markup and JS.\r\n\r\n### Redundant entry (3.3.7) — new in 2.2\r\n\r\nDon't force users to re-enter information they already provided in the same session. Auto-populate from earlier steps, or let users select from previously entered values. Exceptions: security re-confirmation and content that has expired.\r\n\r\n```html\r\n\u003C!-- ✅ Auto-fill shipping address from billing -->\r\n\u003Cfieldset>\r\n  \u003Clegend>Shipping address\u003C\u002Flegend>\r\n  \u003Clabel>\r\n    \u003Cinput type=\"checkbox\" id=\"same-as-billing\" checked>\r\n    Same as billing address\r\n  \u003C\u002Flabel>\r\n  \u003C!-- Fields auto-populated when checked -->\r\n\u003C\u002Ffieldset>\r\n```\r\n\r\n### Accessible authentication (3.3.8) — new in 2.2\r\n\r\nLogin flows must not rely on cognitive function tests (e.g., remembering a password, solving a puzzle) unless at least one of:\r\n- A copy-paste or autofill mechanism is available\r\n- An alternative method exists (e.g., passkey, SSO, email link)\r\n- The test uses object recognition or personal content (AA only; AAA removes this exception)\r\n\r\n```html\r\n\u003C!-- ✅ Allow paste in password fields -->\r\n\u003Cinput type=\"password\" id=\"password\" autocomplete=\"current-password\">\r\n\r\n\u003C!-- ✅ Offer passwordless alternatives -->\r\n\u003Cbutton type=\"button\">Sign in with passkey\u003C\u002Fbutton>\r\n\u003Cbutton type=\"button\">Email me a login link\u003C\u002Fbutton>\r\n```\r\n\r\n---\r\n\r\n## Robust\r\n\r\n### ARIA usage (4.1.2)\r\n\r\n**Prefer native elements:**\r\n```html\r\n\u003C!-- ❌ ARIA role on div -->\r\n\u003Cdiv role=\"button\" tabindex=\"0\">Click me\u003C\u002Fdiv>\r\n\r\n\u003C!-- ✅ Native button -->\r\n\u003Cbutton>Click me\u003C\u002Fbutton>\r\n\r\n\u003C!-- ❌ ARIA checkbox -->\r\n\u003Cdiv role=\"checkbox\" aria-checked=\"false\">Option\u003C\u002Fdiv>\r\n\r\n\u003C!-- ✅ Native checkbox -->\r\n\u003Clabel>\u003Cinput type=\"checkbox\"> Option\u003C\u002Flabel>\r\n```\r\n\r\n**When ARIA is needed,** use the correct roles and states. See the [ARIA tabs pattern](references\u002FA11Y-PATTERNS.md#aria-tabs) for a complete tablist example.\r\n\r\n### Live regions (4.1.3)\r\n\r\nUse `aria-live` regions to announce dynamic content changes without moving focus. See the [live regions pattern](references\u002FA11Y-PATTERNS.md#live-regions-and-notifications) for markup and a `showNotification()` helper.\r\n\r\n---\r\n\r\n## Testing checklist\r\n\r\n### Automated testing\r\n```bash\r\n# Lighthouse accessibility audit\r\nnpx lighthouse https:\u002F\u002Fexample.com --only-categories=accessibility\r\n\r\n# axe-core\r\nnpm install @axe-core\u002Fcli -g\r\naxe https:\u002F\u002Fexample.com\r\n```\r\n\r\n### Manual testing\r\n\r\n- [ ] **Keyboard navigation:** Tab through entire page, use Enter\u002FSpace to activate\r\n- [ ] **Screen reader:** Test with VoiceOver (Mac), NVDA (Windows), or TalkBack (Android)\r\n- [ ] **Zoom:** Content usable at 200% zoom\r\n- [ ] **High contrast:** Test with Windows High Contrast Mode\r\n- [ ] **Reduced motion:** Test with `prefers-reduced-motion: reduce`\r\n- [ ] **Focus order:** Logical and follows visual order\r\n- [ ] **Target size:** Interactive elements meet 24×24px minimum\r\n\r\nSee the [screen reader commands reference](references\u002FA11Y-PATTERNS.md#screen-reader-commands) for VoiceOver and NVDA shortcuts.\r\n\r\n---\r\n\r\n## Common issues by impact\r\n\r\n### Critical (fix immediately)\r\n1. Missing form labels\r\n2. Missing image alt text\r\n3. Insufficient color contrast\r\n4. Keyboard traps\r\n5. No focus indicators\r\n\r\n### Serious (fix before launch)\r\n1. Missing page language\r\n2. Missing heading structure\r\n3. Non-descriptive link text\r\n4. Auto-playing media\r\n5. Missing skip links\r\n\r\n### Moderate (fix soon)\r\n1. Missing ARIA labels on icons\r\n2. Inconsistent navigation\r\n3. Missing error identification\r\n4. Timing without controls\r\n5. Missing landmark regions\r\n\r\n## References\r\n\r\n- [WCAG 2.2 Quick Reference](https:\u002F\u002Fwww.w3.org\u002FWAI\u002FWCAG22\u002Fquickref\u002F)\r\n- [WAI-ARIA Authoring Practices](https:\u002F\u002Fwww.w3.org\u002FWAI\u002FARIA\u002Fapg\u002F)\r\n- [Deque axe Rules](https:\u002F\u002Fdequeuniversity.com\u002Frules\u002Faxe\u002F)\r\n- [Web Quality Audit](..\u002Fweb-quality-audit\u002FSKILL.md)\r\n- [WCAG criteria reference](references\u002FWCAG.md)\r\n- [Accessibility code patterns](references\u002FA11Y-PATTERNS.md)\r\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"version":26},"web-quality-skills","1.1","main","2d7fc25bfe13e27af47ce0cc724e9b266d386137",".claude\u002Fskills\u002Faccessibility","https:\u002F\u002Fgithub.com\u002Feladperlman\u002FFinniHealthTakeHome","https:\u002F\u002Ffinni-health-take-home.vercel.app","https:\u002F\u002Fgithub.com\u002Feladperlman","2026-07-27 06:16:05",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add eladperlman\u002FFinniHealthTakeHome --skill accessibility",{"tool":40,"command":41},"bunx","bunx skills add eladperlman\u002FFinniHealthTakeHome --skill accessibility",{"tool":43,"command":44},"pnpm","pnpm dlx skills add eladperlman\u002FFinniHealthTakeHome --skill accessibility","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Feladperlman\u002FFinniHealthTakeHome\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Faccessibility\u002FSKILL.md",true,[48,54],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002FA11Y-PATTERNS.md","REFERENCE","参考文档",6269,"https:\u002F\u002Fgithub.com\u002Feladperlman\u002FFinniHealthTakeHome\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Faccessibility\u002Freferences\u002FA11Y-PATTERNS.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002FWCAG.md",9270,"https:\u002F\u002Fgithub.com\u002Feladperlman\u002FFinniHealthTakeHome\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Faccessibility\u002Freferences\u002FWCAG.md",[59,66],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M79M7TG9XXMD1AJN1N0JFT1P","react-best-practices","Comprehensive React and Next.js performance optimization guide with 40+ rules for eliminating waterfalls, optimizing bundles, and improving rendering. Use when optimizing React apps, reviewing performance, or refactoring components.","https:\u002F\u002Fgithub.com\u002Feladperlman\u002FFinniHealthTakeHome\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Freact-best-practices\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M79M6JK09NEB2GQPHDX34FZG","design-system","Token architecture, component specifications, and slide generation. Three-layer tokens (primitive→semantic→component), CSS variables, spacing\u002Ftypography scales, component specs, strategic slide creation. Use for design tokens, systematic design, brand-compliant presentations.","https:\u002F\u002Fgithub.com\u002Feladperlman\u002FFinniHealthTakeHome\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdesign-system\u002FSKILL.md",[],[]]