sergiodxa avatar

Frontend Accessibility Best Practices

A solid reference for keeping React components accessible without having to look up WCAG guidelines every time. Covers the practical stuff: semantic HTML landmarks, screen reader text with sr-only classes, ARIA live regions for dynamic content, keyboard navigation patterns, focus management in modals, and respecting reduced motion preferences. The examples are concrete and show both the wrong and right way to do things, which helps. Seven rules organized by priority, with references to react-aria-components doing the heavy lifting on modals and buttons. Most useful when you're building forms or interactive UI and want to catch accessibility issues during development rather than in an audit later.

skills.sh installs
896
GitHub stars
92
last updated
Aug 21, 2026

Install

$ npx -y skills add sergiodxa/agent-skills --skill frontend-accessibility-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

Accessibility Best Practices

Accessibility patterns for building inclusive React applications following WCAG standards. Contains 7 rules across 4 categories focused on semantic HTML, screen reader support, keyboard navigation, and user preferences.

When to Apply

Reference these guidelines when:

  • Creating new UI components
  • Building forms and interactive elements
  • Adding dynamic content or notifications
  • Implementing navigation patterns
  • Reviewing code for accessibility

Rules Summary

Semantic HTML & Structure (HIGH)

semantic-html-landmarks - @rules/semantic-html-landmarks.md

Use semantic HTML elements for page structure.

// Bad: divs with class names
<div className="header">...</div>
<div className="nav">...</div>
<div className="content">...</div>

// Good: semantic elements
<header>...</header>
<nav aria-label={t("Primary")}>...</nav>
<main>...</main>
<footer>...</footer>

Screen Readers (MEDIUM)

screen-reader-sr-only - @rules/screen-reader-sr-only.md

Use sr-only class for visually hidden text.

Sponsors

Details

Repository
github.com/sergiodxa/agent-skills
Categories
Frontend Development, AI & Agent Building, Design & UI/UX
First seen
Jun 3, 2026

More from sergiodxa/agent-skills

All 10
1framara avatarreact-flowframara/react-flow-skillExpert guidance for React Flow (@xyflow/react): building interactive node-based graphs, custom nodes and edges, handles, state management, layouting, TypeScript857skills.sh installs
2wot-ui avatarcreate-wot-ui-themewot-ui/open-wot为 wot-ui 生成单文件主题 SCSS,并在用户明确要求接入时追加 App.vue 的 `@use`。当用户要做品牌主题、语义变量落地、单文件主题接入时使用。854skills.sh installs
3martinholovsky avatarui-ux-expertmartinholovsky/claude-skills-generatorExpert UI/UX designer specializing in user-centered design, accessibility (WCAG 2.2), design systems, and responsive interfaces. Use when designing web/mobile a830skills.sh installs
4mindrally avatarsveltemindrally/skillsExpert in Svelte and SvelteKit development with modern patterns and SSR788skills.sh installs
5uni-helper avatarvue-best-practicesuni-helper/skillsMUST be used for Vue.js tasks. Strongly recommends Composition API with `<script setup>` and TypeScript as the standard approach. Covers Vue 3, SSR, Volar, vue-787skills.sh installs
6adobe avatarappbuilder-ui-scaffolderadobe/skillsGenerate React Spectrum UI components for Adobe Experience Cloud Shell SPAs and AEM UI Extensions. Provides patterns for pages, forms, data tables, dialogs, and769skills.sh installs