Skip to content
Back to skills

Accessibility

ASecurity

- **Perceivable**: Alt text for images, captions for video, sufficient color contrast (4.5:1 min) - **Operable**: Full keyboard navigation, no keyboard traps, skip-to-content links - **Understandable**: Clear labels, error messages with suggestions, consistent navigation - **Robust**: Valid HTML, ARIA roles/states only when native HTML is insufficient

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 27, 2026
data-aireacttesting

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned May 27, 2026

npx -y skills add ByeongminLee/nextjs-claude-code --skill accessibility --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Accessibility?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Accessibility
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/byeongminlee-accessibility/badge)](https://www.skillsdirectory.com/skills/byeongminlee-accessibility)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Accessibility (WCAG 2.1)

## Core Principles
- **Perceivable**: Alt text for images, captions for video, sufficient color contrast (4.5:1 min)
- **Operable**: Full keyboard navigation, no keyboard traps, skip-to-content links
- **Understandable**: Clear labels, error messages with suggestions, consistent navigation
- **Robust**: Valid HTML, ARIA roles/states only when native HTML is insufficient

## React Patterns
- Use semantic HTML (`<button>`, `<nav>`, `<main>`) over `<div>` with roles
- `aria-label` for icon-only buttons, `aria-describedby` for form hints
- Manage focus: `useRef` + `focus()` after route changes or modal open
- Live regions: `aria-live="polite"` for async status, `"assertive"` for errors
- `visually-hidden` class for screen-reader-only text (not `display:none`)

## Component Checklist
- **Forms**: `<label htmlFor>`, `aria-invalid`, `aria-errormessage`, required indicator
- **Modals**: Focus trap, Escape to close, `role="dialog"`, `aria-modal="true"`, return focus on close
- **Tabs**: `role="tablist/tab/tabpanel"`, arrow key navigation, `aria-selected`
- **Dropdowns**: `aria-expanded`, `aria-haspopup`, arrow key + Home/End support
- **Images**: Meaningful `alt`, empty `alt=""` for decorative, `role="img"` for SVG with `<title>`

## Testing
- axe-core: `npm i -D @axe-core/react` or inject via Playwright
- Keyboard-only navigation test: Tab through all interactive elements
- Screen reader: VoiceOver (macOS), NVDA (Windows)
- Color contrast: Chrome DevTools > Rendering > Emulate vision deficiencies

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.