accessible-components
Skill11 starsChanged 10 days agoMITView on GitHub
Use when designing or implementing reusable accessible dialogs, menus, tabs, accordions, disclosures, comboboxes, and other interactive UI components.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- tiagosilva07/zyrax-guardtheir own version, first seen Nov 15, 2026
- yogvidwankhede/vishwakarmatheir own version, first seen Sep 26, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- tiagosilva07/zyrax-guard★ 2same name
- yogvidwankhede/vishwakarma★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- accessibility-automationSkill
- accessibility-reviewSkill
- accessible-motionSkill
- animation-performanceSkill
- anti-slop-uiSkill
- api-securitySkill
- authentication-sessionsSkill
- authorization-access-controlSkill
- component-engineeringSkill
- core-web-vitalsSkill
- design-directionSkill
- design-system-architectureSkill
- document-head-seoSkill
- font-performanceSkill
- forms-and-validationSkill
- frontend-architectureSkill
- gsap-fundamentalsSkill
- icon-engineeringSkill
- image-asset-optimizationSkill
- independent-reviewSkill
- interactive-storytellingSkill
- javascript-performanceSkill
- keyboard-focusSkill
- modern-cssSkill
- motion-design-systemsSkill
- network-cachingSkill
- performance-auditingSkill
- performance-testingSkill
- premium-landing-pagesSkill
- quickstart-onboardingSkill
- rendering-performanceSkill
- responsive-engineeringSkill
- screen-reader-testingSkill
- scrolltrigger-experiencesSkill
- secrets-configurationSkill
- secure-application-designSkill
- secure-input-outputSkill
- security-reviewSkill
- security-testingSkill
- semantic-accessibilitySkill
- visual-design-reviewSkill
- visual-reference-analysisSkill
- wcag-auditingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 16 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Prefer a native HTML element when it provides the required behavior.
- Distinctive: line 18
Keep component APIs explicit.
- Distinctive: line 24
Use a button to toggle the controlled content.
- Distinctive: line 27
Keep the button in the normal Tab sequence.
- Distinctive: line 28
Ensure the panel content is hidden from interaction when collapsed.
- Distinctive: line 32
Use tablist, tab and tabpanel semantics only when implementing the tabs interaction pattern.
- Distinctive: line 33
Keep aria-selected, tabindex and panel relationships synchronized.
- Distinctive: line 36
Do not use tabs semantics for ordinary navigation links.
- Distinctive: line 40
Use ordinary navigation links for site navigation.
- Distinctive: line 41
Use menu roles only for a true menu widget with the expected keyboard model.
- Distinctive: line 42
Ensure submenus have predictable open, close and focus behavior.
- Distinctive: line 49
Use native dialog where appropriate, while still testing browser and assistive-technology behavior.
- Distinctive: line 53
Follow the exact APG pattern for editable or select-only behavior.
- Distinctive: line 54
Keep active option, selected value, popup visibility and expanded state distinct and synchronized.
- Distinctive: line 56
Do not build a custom combobox when a native select meets the product requirement.
- Distinctive: line 72
Test every state with keyboard-only interaction, browser accessibility inspection and representative screen readers.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Accessible Component Engineering
Objective
Build reusable components whose semantics, keyboard behavior, focus lifecycle and state remain correct across every supported state.
Before implementation
- Prefer a native HTML element when it provides the required behavior.
- Identify the exact interaction pattern in the WAI-ARIA Authoring Practices Guide.
- Define states, transitions, keyboard commands, focus rules, accessible names and disabled behavior before writing code.
- Confirm whether the component is modal, non-modal, single-select, multi-select or navigation.
- Keep component APIs explicit; do not let consumers create contradictory ARIA state.
Pattern requirements
Disclosure and accordion
- Use a button to toggle the controlled content.
- Expose expanded/collapsed state with aria-expanded.
- Connect the control to its panel with aria-controls when useful.
- Keep the button in the normal Tab sequence.
- Ensure the panel content is hidden from interaction when collapsed.
Tabs
- Use tablist, tab and tabpanel semantics only when implementing the tabs interaction pattern.
- Keep aria-selected, tabindex and panel relationships synchronized.
- Choose and document manual or automatic activation.
- Implement the pattern's arrow-key behavior and Home/End where applicable.
- Do not use tabs semantics for ordinary navigation links.
Menu and navigation
- Use ordinary navigation links for site navigation; do not apply application-menu keyboard behavior to a standard nav list.
- Use menu roles only for a true menu widget with the expected keyboard model.
- Ensure submenus have predictable open, close and focus behavior.
Dialog
- Give the dialog an accessible name, preferably through a visible heading.
- Set modal semantics only when the background is actually modal and unavailable.
- Move focus into the dialog, manage contained focus, support permitted dismissal and restore focus on close.
- Use native dialog where appropriate, while still testing browser and assistive-technology behavior.
Combobox and listbox
- Follow the exact APG pattern for editable or select-only behavior.
- Keep active option, selected value, popup visibility and expanded state distinct and synchronized.
- Support the expected arrow, Escape, Enter and text-editing behavior.
- Do not build a custom combobox when a native select meets the product requirement.
Component API design
Document:
- Accessible name source and required labeling.
- Controlled/uncontrolled state contract.
- Keyboard interaction contract.
- Focus entry, exit and restoration.
- Disabled and read-only behavior.
- Async loading, empty, error and success states.
- Portal, nested overlay and stacking behavior.
- Supported browser and assistive-technology coverage.
Verification
Test every state with keyboard-only interaction, browser accessibility inspection and representative screen readers. Add component tests for state and keyboard transitions, plus end-to-end tests for complete user tasks.
Completion criteria
The component follows a documented interaction pattern, exposes accurate semantics and state, supports expected keyboard behavior, and has tests for lifecycle and edge states.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

