.github/skills/accessibility-aria-expert/SKILL.md
Detects and fixes accessibility issues in React/Fluent UI webviews. Use when reviewing code for screen reader compatibility, fixing ARIA labels, ensuring keyboard navigation, adding live regions for status messages, or managing focus in dialogs.
npx skillsauth add microsoft/vscode-documentdb detecting-accessibility-issuesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Verify and fix accessibility in React/Fluent UI webview components.
aria-label to icon-only buttons or form inputsTooltips require aria-label + aria-hidden to avoid double announcements:
<Tooltip content="Detailed explanation">
<Badge tabIndex={0} className="focusableBadge" aria-label="Badge text. Detailed explanation">
<span aria-hidden="true">Badge text</span>
</Badge>
</Tooltip>
aria-label: Full context (visible text + tooltip)aria-hidden="true": Wraps visible text to prevent duplication❌ Problem: Tooltip content inaccessible to screen readers
<Tooltip content="Save document to database">
<Button aria-label="Save">Save</Button>
</Tooltip>
✅ Fix: Include tooltip in aria-label
<Tooltip content="Save document to database" relationship="description">
<Button aria-label="Save document to database">Save</Button>
</Tooltip>
❌ Problem: Screen reader says "Collection scan Collection scan"
<Badge aria-label="Collection scan. Query is inefficient">Collection scan</Badge>
✅ Fix: Wrap visible text
<Badge aria-label="Collection scan. Query is inefficient">
<span aria-hidden="true">Collection scan</span>
</Badge>
❌ Problem: aria-label identical to visible text adds no value
<Button aria-label="Save">Save</Button>
<ToolbarButton aria-label="Validate" icon={<CheckIcon />}>Validate</ToolbarButton>
✅ Fix: Remove redundant aria-label OR make it more descriptive
<Button>Save</Button>
<ToolbarButton icon={<CheckIcon />}>Validate</ToolbarButton>
Keep aria-label only when it adds information:
<ToolbarButton aria-label="Save document to database" icon={<SaveIcon />}>
Save
</ToolbarButton>
❌ Problem: No accessible name
<ToolbarButton icon={<DeleteRegular />} onClick={onDelete} />
✅ Fix: Add aria-label
<Tooltip content="Delete selected items" relationship="description">
<ToolbarButton aria-label="Delete selected items" icon={<DeleteRegular />} onClick={onDelete} />
</Tooltip>
❌ Problem: Progress bar announced unnecessarily
<ProgressBar thickness="large" />
✅ Fix: Hide decorative elements
<ProgressBar thickness="large" aria-hidden={true} />
❌ Problem: SpinButton/Input without accessible name
<SpinButton value={skipValue} onChange={onSkipChange} />
<Input placeholder="Enter query..." />
✅ Fix: Add aria-label or associate with label element
<SpinButton aria-label="Skip documents" value={skipValue} onChange={onSkipChange} />
<Label htmlFor="query-input">Query</Label>
<Input id="query-input" placeholder="Enter query..." />
❌ Problem: aria-label doesn't contain visible text (breaks voice control)
<ToolbarButton aria-label="Reload data" icon={<RefreshIcon />}>
Refresh
</ToolbarButton>
✅ Fix: Accessible name must contain visible label exactly
<ToolbarButton aria-label="Refresh data" icon={<RefreshIcon />}>
Refresh
</ToolbarButton>
Voice control users say "click Refresh" – only works if accessible name contains "Refresh".
❌ Problem: Screen reader doesn't announce dynamic content
<span>{isLoading ? 'Loading...' : `${count} results`}</span>
✅ Fix: Use the Announcer component
import { Announcer } from '../../api/webview-client/accessibility';
// Announces when `when` transitions from false to true
<Announcer when={isLoading} message={l10n.t('Loading...')} />
// Dynamic message based on state
<Announcer
when={!isLoading && documentCount !== undefined}
message={documentCount > 0 ? l10n.t('Results found') : l10n.t('No results found')}
/>
Use for: loading states, search results, success/error messages.
❌ Problem: Focus stays on trigger when modal opens
{
isOpen && <Dialog>...</Dialog>;
}
✅ Fix: Move focus programmatically
const dialogRef = useRef<HTMLDivElement>(null);
useEffect(() => {
if (isOpen) dialogRef.current?.focus();
}, [isOpen]);
{
isOpen && (
<Dialog ref={dialogRef} tabIndex={-1} aria-modal="true">
...
</Dialog>
);
}
❌ Problem: Buttons share visual label but screen reader misses context
<span>How would you rate this?</span>
<Button>👍</Button>
<Button>👎</Button>
✅ Fix: Use role="group" with aria-labelledby
<div role="group" aria-labelledby="rating-label">
<span id="rating-label">How would you rate this?</span>
<Button aria-label="I like it">👍</Button>
<Button aria-label="I don't like it">👎</Button>
</div>
DO use on:
DO NOT use on:
For keyboard-accessible badges with tooltips:
<Badge tabIndex={0} className="focusableBadge" aria-label="Visible text. Tooltip details">
<span aria-hidden="true">Visible text</span>
</Badge>
Use the Announcer component for WCAG 4.1.3 (Status Messages) compliance.
import { Announcer } from '../../api/webview-client/accessibility';
// Announces "AI is analyzing..." when isLoading becomes true
<Announcer when={isLoading} message={l10n.t('AI is analyzing...')} />
// Dynamic message based on state (e.g., query results)
<Announcer
when={!isLoading && documentCount !== undefined}
message={documentCount > 0 ? l10n.t('Results found') : l10n.t('No results found')}
/>
// With assertive politeness (default is polite)
<Announcer when={hasError} message={l10n.t('Error occurred')} politeness="assertive" />
when: Announces when this transitions from false to truemessage: The message to announce (use l10n.t() for localization)politeness: 'assertive' (default, interrupts) or 'polite' (waits for idle)documentCount) to derive dynamic messagesl10n.t() for messages - announcements must be localizedwhen goes back to false, it's ready for the next announcementaria-labelaria-labelaria-labelaria-hidden="true" when aria-label duplicates itaria-hidden={true}focusableBadge class + tabIndex={0}Announcer componentrole="group" with aria-labelledbysrc/webviews/components/focusableBadge/focusableBadge.md for the Badge patterndevelopment
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.