Skip to content
Back to skills

Accessible Interactions

ASecurity

Keyboard, focus, ARIA and reduced-motion rules for every interactive element in the ApplyPack dashboard (forms, tables, toggles, action buttons). Read before building or modifying any button, form, table or navigation.

  • 36 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 2, 2026
ai-agents

Works with

  • cli

Security analysis

A100/100

Scanned October 6, 2026

npx -y skills add applypack/applypack --skill accessible-interactions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Accessible Interactions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Accessible Interactions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/applypack-accessible-interactions/badge)](https://www.skillsdirectory.com/skills/applypack-accessible-interactions)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: accessible-interactions
description: Keyboard, focus, ARIA and reduced-motion rules for every interactive element in the ApplyPack dashboard (forms, tables, toggles, action buttons). Read before building or modifying any button, form, table or navigation.
---

# Accessible Interactions

The dashboard is server-rendered forms and tables. Accessibility here is
mostly semantics and focus — get those right and there is little else to do.

## Semantics first

- Actions are `<button>` inside a `<form method="post">` (`ActionForm` +
  `Button` in `ui.tsx`); navigation is `<a>`. Never a clickable `<div>`.
- One `<h1>` per page (`PageHeader`); section titles are `<h2>`
  (`SectionTitle`); heading levels never skip. Landmarks: `header`, `nav`
  (labelled "Primary", the catalog's `layout.primaryNav`), `main#main`,
  `section` per card, `footer`.
- A word a person reads or hears — an `aria-label`, a `title`, an `sr-only`
  span — is a catalog message like any other (`t()`, ADR 0061). A name that
  is data (a company, a file, a language's own name) takes `translate="no"`,
  and text in another language than the page takes its `lang`.
- Every input has a wired label — use `Field`, which wraps the control in a
  `<label>`. Groups of checkboxes/radios sit in a `<fieldset>` with a
  `<legend>`.
- Flash messages render with `role="status"` (`Flash`).
- Tables use `<th scope="col">` (`Table`); numeric cells are `font-mono
  tabular-nums`.
- Status conveyed by text, never colour alone: `Badge` shows the word,
  `FitBadge` shows the number plus a 4-step meter.

## Focus

- Focus order = visual reading order.
- Focus ring: `:focus-visible` outline in `--accent`, 2px offset, defined
  once in `layout.tsx`. Never remove it on a control.
- Skip link to `#main` is the first tabbable element (already in `Layout`).
- Sticky header must not cover a focused control: add `scroll-margin-top`
  when introducing in-page anchors.

## Touch and pointer

- Minimum hit area 32px tall for buttons (`Button` sets `min-h-[32px]`),
  28px for checkbox labels. Nothing depends on hover.
- Destructive actions confirm via `ActionForm confirm=` — the browser
  dialog is keyboard-accessible by default; do not replace it with a custom
  modal.

## Reduced motion

`layout.tsx` collapses all transitions under `prefers-reduced-motion`. Do
not add animations that carry meaning; the only motion is 150ms colour
transitions on hover.

## Forms

- Correct input types (`type="search"`, `type="url"`, `type="date"`,
  `type="number"` with min/max) and `autocomplete="off"` on secrets.
- Server-side validation errors come back as a flash; keep the user's input
  in the re-rendered form.

## Definition of accessible-done

Keyboard-only walkthrough of the changed page; 375px viewport has no
horizontal scroll outside a table's own `overflow-x-auto`; browser console
has zero errors.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.