Setup accessibility

From redpanda-data/ui-harness · View interactive version

Setup accessibility is an AI agent skill from the GitHub repository redpanda-data/ui-harness. Enforce ARIA accessibility via PostToolUse hooks -- labels, keyboard handlers, widget attributes, Playwright AXE setup. Use when setting up a11y enforcement, WCAG 2.1 AA compliance, or accessibility testing.

How to use this skill

Skill file

Accessibility Enforcement

What This Catches

Escape hatch: // allow: a11y-skip [reason]

No Nested Pressables

Interactive components ONE pattern -- never both:

Pattern A: Container clickable -- no interactive children.

<ListCard onClick={handleSelect}>
  <Avatar src={user.avatar} />
  <Text>{user.name}</Text>
  <ChevronRightIcon /> {/* visual indicator only, not a button */}
</ListCard>

Pattern B: Children interactive -- container not clickable.

<ListCard>
  <Avatar src={user.avatar} />
  <Text>{user.name}</Text>
  <DropdownMenu>
    <DropdownMenuTrigger asChild>
      <Button variant="ghost" size="icon"><MoreVerticalIcon /></Button>
    </DropdownMenuTrigger>
  </DropdownMenu>
</ListCard>

Why: ambiguous click targets, event bubbling bugs, screen readers can't convey interaction model, touch targets overlap on mobile.

Visual Checklist

Initial setup (install, AXE fixture, hook config): see SETUP.md.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.