- Home
- Skills
- UX & UI Design
- Accessibility
More screenshots
Works with the AI Agents you already use
Accessibility
WCAG 2.2 AA compliance enforcement for web and mobile UI components including focus, ARIA, and contrast.
$7
Accessibility
Example session with this skill installed
Review this React modal component for accessibility compliance, specifically focus management and ARIA roles.
- Read your context and instructions
- Compiled the accessibility
I have reviewed the modal component against WCAG 2.2 AA standards. The current implementation lacks a focus trap and does not return focus to the trigger element upon closing, which is a Blocker.
Accessibility Audit: Modal Component
| Feature | Status | Requirement |
|---|---|---|
| Landmarks | Pass | Uses <dialog> element or role="dialog" |
| Focus Trap | Fail | Focus can escape to background elements; background is not inert |
| Focus Return | Fail | Focus defaults to <body> on close instead of the trigger button |
| Accessible Name | Major | Missing aria-labelledby linking to the modal title |
| Escape Key | Pass | Modal closes when Esc is pressed |
| Contrast | Pass | Title (4.8:1) and Body (5.2:1) meet AA thresholds |
Remediation Code
// Apply these changes to ensure keyboard and screen reader parity
const Modal = ({ isOpen, onClose, triggerRef }) => {
const dialogRef = useRef(null);
useEffect(() => {
if (isOpen) {
dialogRef.current?.showModal();
} else {
dialogRef.current?.close();
// FIX: Return focus to trigger
triggerRef.current?.focus();
}
}, [isOpen]);
return (
<dialog
ref={dialogRef}
aria-labelledby="modal-title"
onClose={onClose}
>
<h2 id="modal-title">Settings</h2>
{/* Content */}
<button type="button" onClick={onClose}>Close</button>
</dialog>
);
};
Next steps
- Add
aria-describedbyto link the modal body text for screen readers. - Verify the
closebutton has a minimum target size of 24x24px. - Test the focus order within the modal if additional form fields are added.
Connects securely to your tools. The creator never sees your data.
About this skill
Users with disabilities are often blocked by inaccessible UI code that relies on visual-only cues or broken keyboard flows. This skill enforces WCAG 2.2 AA standards directly within your components and views.
What it does
- Enforces semantic structure by validating landmarks, heading hierarchies, and proper use of native HTML elements over ARIA hacks.
- Manages focus cycles ensuring every interactive element is keyboard-accessible, focus-visible, and free of keyboard traps.
- Validates names and roles to ensure every control has a clear, accessible name and correct ARIA states like
aria-expandedoraria-current. - Calculates color contrast using a dedicated script to verify text and UI component ratios against WCAG thresholds.
- Handles async announcements by wiring up live regions for toasts, loading states, and form errors.
How it works
- Markup Review: Use the skill during development to audit JSX, HTML, or mobile component files for structural errors.
- Contrast Check: Invoke the included
contrast.mjsscript to verify specific hex code pairs. - Focus Audit: Trigger a review of modal, drawer, or navigation logic to ensure focus trapping and return-to-opener behavior.
- Remediation: Apply suggested fixes for missing
alttext, incorrecttabindex, or missingaria-describedbylinks.
Frameworks & tools
This skill includes a Node 18+ contrast checking script and provides specific implementations for Web (HTML/React), iOS (SwiftUI), Android (Compose), React Native, and Flutter.
Why this beats prompting it yourself
Generic prompts often miss the nuances of focus management and the "Native HTML first" rule, leading to over-engineered ARIA soup. This skill uses a strict checklist of blockers and major issues to ensure a screen-reader user can actually finish a task.
Use cases
- Auditing a new component library for WCAG 2.2 AA compliance.
- Fixing broken keyboard navigation in complex modal dialogs.
- Verifying color palettes meet contrast requirements for dark and light modes.
- Implementing accessible route changes in Single Page Applications.
Known limitations
Cannot verify actual tab order changes caused by CSS order properties or layout reflow without a browser environment. VoiceOver and TalkBack announcements cannot be fully verified from source code alone.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 days ago
Permissions
What's inside
Frequently Asked Questions
New in UX & UI Design
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for UX & UI Design.