Skip to content
sergiodxa avatar

Frontend Accessibility Best Practices

Accessibility rules for React components covering semantic HTML, screen readers, keyboard focus, and motion preferences.

CCM score
62 of 100
skills.sh installs
929
GitHub stars
92
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers 7 rules across 4 categories: semantic HTML, screen readers, keyboard and focus, and user preferences
  • Includes sr-only labels for icon-only buttons, role="alert" and role="status" live regions, and 44x44px touch targets
  • Enforces semantic elements over clickable divs, focus-visible focus rings, and focus trapping in modals via react-aria
  • Designed for teams building or reviewing React forms, interactive elements, and dynamic UI for WCAG compliance

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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.

Details

Repository
github.com/sergiodxa/agent-skills
Category
Frontend & UI Code
First seen
Jun 3, 2026

More from sergiodxa/agent-skills

All 10

Similar to Frontend Accessibility Best Practices

More Frontend & UI Code