Accessible Focus Management

•
69
•

Implements WCAG-compliant keyboard navigation and focus control patterns for complex web components.

The Focus Management skill provides specialized guidance and implementation patterns for creating accessible web interfaces. It addresses critical accessibility needs such as trapping focus within modals, implementing roving tabindex for menus and tabs, and ensuring focus is correctly restored after user actions. By leveraging production-ready patterns like FocusScope and skip links, this skill helps developers build inclusive applications that meet WCAG 2.4.7 requirements and provide a seamless experience for keyboard-only and assistive technology users.

主な機能

01Strict focus trapping for modals and dialogs to prevent background interaction
02Automatic focus restoration to return users to their previous context
0369 GitHub stars
04Implementation of accessible skip links for faster keyboard navigation
05Roving tabindex patterns for arrow-key navigation in composite widgets
06WCAG 2.4.7 compliant focus visibility and styling guidance

ユースケース

01Ensuring focus returns to the trigger button after closing a side drawer or overlay
02Building accessible modal dialogs that contain keyboard focus until closed
03Creating complex tab lists or menus that support standard keyboard navigation