# accessibility-pass

Adopt this skill: https://proskills.md/skills/other/ham7a311-vitrine-src-workshop-skills-accessibility-pass

Page: https://proskills.md/skills/other/ham7a311-vitrine-src-workshop-skills-accessibility-pass
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: src/workshop/skills/accessibility-pass/SKILL.md
size: 4218
upstream: https://github.com/ham7a311/vitrine/blob/main/src/workshop/skills/accessibility-pass/SKILL.md

```text
---
name: accessibility-pass
description: Run a hands-on accessibility pass on a web page or component - keyboard walk, focus visibility, names and roles, live announcements, reduced motion, contrast and zoom - verifying each check in a real browser rather than by reading code. Use before shipping UI, or when asked to check or fix accessibility.
---

# /accessibility-pass

Every check below says **how to verify it**. Reading the code is not verification; use a real browser (Playwright, or the browser tools you have) and observe.

## 1. Keyboard walk

- Load the page, click nothing, and press Tab repeatedly from the top. Record each focused element: `document.activeElement` tag, role and accessible name.
- **Pass when:** every interactive element is reached, in reading order, and nothing that isn't interactive takes focus. No focus trap except inside an open dialog.
- Operate every control with the keyboard only: Enter and Space on buttons, arrows in tabs, radios, sliders, menus and listboxes, Escape to close anything that opens.
- **Composite widgets** (tabs, menus, listboxes, grids) should be one Tab stop with arrow keys inside (roving tabindex or `aria-activedescendant`).
- **Pass when** closing a popover, dialog or menu returns focus to the control that opened it, and deleting or moving an item leaves focus somewhere sensible, not on `<body>`.

## 2. Focus is visible

- For each focused element, take a screenshot or check computed styles. There must be a visible indicator with at least 3:1 contrast against its surroundings.
- Use `:focus-visible`, so mouse clicks don't leave rings but keyboard focus always shows.
- **Pass when** you can always tell where focus is from a screenshot alone.

## 3. Names, roles and states

- Query the accessibility tree (Playwright's `page.accessibility.snapshot()` or `getByRole` lookups).
- **Pass when:**
  - every control has a role and a name that says what it does ("Delete Q3 roadmap", not "button" or "×")
  - icon-only buttons have `aria-label`
  - toggles expose `aria-pressed` or `aria-checked`, and disclosures `aria-expanded`
  - the current page or step is marked with `aria-current`
  - inputs have real `<label>`s, and errors are tied to them with `aria-describedby`
- Images: decorative ones have `alt=""`; meaningful ones say what matters in them.
- Headings form an outline (one `h1`, no skipped levels for structure), and landmarks exist (`header`, `nav`, `main`, `footer`).

## 4. Changes are announced

- Anything that changes without a page load (a save, a toast, a filter count, an upload finishing, an error) must reach a screen reader.
- **Verify** by finding the live region (`role="status"` or `aria-live="polite"`, or `role="alert"` for errors) and checking that its text changes when the event happens.
- The text should make sense on its own: "3 edits not saved", not "Error".

## 5. Motion

- Emulate `prefers-reduced-motion: reduce` (Playwright: `reducedMotion: "reduce"` on the context) and reload.
- **Pass when:**
  - large movement, parallax, autoplay and looping animation stop or become fades
  - nothing depends on motion to be understood (a state shown only by an animation needs a static equivalent)
  - timers that expire (toasts, undo windows) can be paused by hover or focus, or extended
- If the component takes a `motion="reduced"` prop, check both paths.

## 6. Contrast, zoom and text

- Check text contrast from computed colours: 4.5:1 for body text, 3:1 for large text (24px, or 18.66px bold) and for UI boundaries and icons that carry meaning.
- **Colour is never the only signal:** errors say so in words, and statuses have a label or icon.
- Zoom to 200% (or set the viewport to 640px wide at DPR 2). **Pass when** nothing is cut off or overlapping, and there's no horizontal scroll for text content.
- Set a 24×24px minimum for touch targets, or give smaller targets enough spacing.

## 7. Report

For each failure: what it is, where it is, how you verified it, and the fix. Group by severity:

- **Blocks use:** can't reach or operate something.
- **Hard to use:** confusing names, lost focus, missing announcements.
- **Polish.**

Fix what you can, then re-run the checks that failed and say so.
```

## File: README.md
upstream: https://github.com/ham7a311/vitrine/blob/main/README.md

```text
<div align="center">

# Vitrine

**Kept under glass.**

A curated collection of React components with memorable interactions.
Read the source, read the prompt behind it, and copy what you need.

[![License: MIT](https://img.shields.io/badge/license-MIT-b9cce4.svg)](./LICENSE)
![Components](https://img.shields.io/badge/components-576-c8b9ea)
![React](https://img.shields.io/badge/React-19-149eca)
![TypeScript](https://img.shields.io/badge/TypeScript-strict-3178c6)
![No animation libraries](https://img.shields.io/badge/animation%20libraries-none-1f1a24)
![Copy/paste](https://img.shields.io/badge/install-copy%2Fpaste-1f1a24)

[Browse the collection](https://tryvitrine.dev) · [How to use it](#how-to-use-a-component) · [How it's made](#how-vitrine-is-made) · [Workshop](#the-workshop) · [Contributing](#contributing)

<br>

<a href="https://tryvitrine.dev/components/reactive-prose"><img src=".github/readme/reactive-prose.gif" width="720" alt="Reactive Prose: a reader drags the number of weekly sign-ups in a paragraph from 40 up to 180 and back down to 35; the sentence's conclusion changes from March 2027 to November 2026 to April 2027 and the chart beneath it redraws."></a>

<sub>Reactive Prose, recorded from the live component: drag a number in the sentence and everything that depends on it recalculates.</sub>

</div>

---

## What is Vitrine?

A *vitrine* is a glass display case: you look, you don't touch. Vitrine is the one display where you're allowed to take the object.

Each component is built around **one clear idea**, often borrowed from a physical object (letterpress, split-flap boards, wet ink, a transit map, a patch bay) and kept useful. Every component comes with:

- a **live preview** with its variants,
- the **real source**, exactly what runs in the preview,
- the **design prompt** it was built from, detailed enough to rebuild or adapt it with an AI assistant,
- notes on **interaction, animation, accessibility, responsiveness and touch**.

There is no package, no CLI and no registry install. You copy the files into your project and they're yours.

## A closer look

<table>
<tr>
<td width="50%" valign="top">
<a href="https://tryvitrine.dev/components/sieve"><img src=".github/readme/sieve.jpg" alt="Sieve: a product grid filtered by type, material and price, with a tray at the bottom labelled 'Set aside 36'."></a>
<br><b><a href="https://tryvitrine.dev/components/sieve">Sieve</a></b> — filters that show their work. Every option previews how many items it would add or remove, and what you filtered out waits in a tray instead of vanishing.
</td>
<td width="50%" valign="top">
<a href="https://tryvitrine.dev/components/undo-tree"><img src=".github/readme/undo-tree.jpg" alt="Undo Tree: a headline editor beside a branching history of six states, with two branch ends marked."></a>
<br><b><a href="https://tryvitrine.dev/components/undo-tree">Undo Tree</a></b> — history that branches instead of forgetting. Undo, change something, and the old future stays in the tree as its own branch.
</td>
</tr>
<tr>
<td width="50%" valign="top">
<a href="https://tryvitrine.dev/components/patch-bay"><img src=".github/readme/patch-bay.jpg" alt="Patch Bay: sources on the left connected to destinations on the right by three sagging coloured cables."></a>
<br><b><a href="https://tryvitrine.dev/components/patch-bay">Patch Bay</a></b> — routing as cables. Plugs refuse incompatible jacks and say why, and every connection is also available as a table.
</td>
<td width="50%" valign="top">
<a href="https://tryvitrine.dev/components/you-draw-it"><img src=".github/readme/you-draw-it.jpg" alt="You Draw It: a line chart of weekly active teams from January to May, with the rest of the year left empty and a prompt to draw your guess."></a>
<br><b><a href="https://tryvitrine.dev/components/you-draw-it">You Draw It</a></b> — a chart that asks for your guess before it shows the answer, then compares the two.
</td>
</tr>
<tr>
<td width="50%" valign="top">
<a href="https://tryvitrine.dev/components/line-map"><img src=".github/readme/line-map.jpg" alt="Line Map: a course drawn as a transit map with three coloured lines, interchanges and a 'You are here' station."></a>
<br><b><a href="https://tryvitrine.dev/components/line-map">Line Map</a></b> — structure drawn as a transit map. Arrow keys travel along a line; at interchanges you change lines.
</td>
<td width="50%" valign="top">
<a href="https://tryvitrine.dev/components/reactive-prose"><img src=".github/readme/reactive-prose.jpg" alt="Reactive Prose: a paragraph about newsletter growth with draggable blue numbers and a small chart of readers over time."></a>
<br><b><a href="https://tryvitrine.dev/components/reactive-prose">Reactive Prose</a></b> — text you can operate. Numbers in the sentence are controls, and the conclusion and chart follow them.
</td>
</tr>
</table>

## What's inside

**576 components in 34 categories.** Recently added components carry a New label; the registry check keeps it to at most 100.

| Category | | Category | | Category | |
|---|---:|---|---:|---|---:|
| Buttons | 89 | Backgrounds | 66 | Cards | 53 |
| AI & Chat | 39 | Controls | 22 | Authentication | 22 |
| Feedback | 22 | Stats | 20 | Analytics | 20 |
| Sections | 19 | Highlights | 17 | Cursors | 16 |
| Forms | 16 | Data | 15 | Text Animations | 14 |
| Micro-animations | 13 | CTAs | 12 | Navigation | 11 |
| FAQ | 10 | Type & Names | 10 | Pricing | 10 |
| Heroes | 8 | Media | 8 | Time | 7 |
| Overlays | 6 | Navbars | 4 | Developer | 4 |
| Footers | 4 | Maps & Globes | 4 | Calendars | 4 |
| Sidebars | 3 | Decisions | 3 | Commerce | 3 |
| Reading | 2 | | | | |

<details>
<summary><b>A longer tour</b></summary>

- **Glassbreak Button**: a plate of dark glass that fractures from a single impact point, pure CSS and fully choreographed.
- **Silk Field**: a shader background you can set type on.
- **Specimen Card**: a card treated as a catalogued object.
- **Iris Shutter Button**: an action that opens and closes like a lens.
- **Prompt Composer, Thinking Trace, Cited Answer, Inline Diff**: the building blocks of a polished AI interface.
- **Split-Flap Text, Extrude Text**: type that moves with intent.
- **Route Globe, Sankey Flow, Sunburst Drill, Cohort Retention**: data that rewards a closer look.
- **Trace 404, Forwarding 404, Underside 404**: missing pages that explain where the request stopped, where the page moved, or turn over to an index.
- **Insert Menu, Board View, Page Header**: a calm document editor's pieces, from the / menu to drag-and-drop status boards.
- **Lesson Path, Word Bank, League Table**: chunky, pressable learning UI where progress always says what it means.
- **Query Cell, Schema Drop, Column Profile**: a hard-edged data toolkit that parses CSV and profiles columns in the browser.
- **Card Wallet, Transfer Composer, Approval Inbox**: precise banking flows that await real callbacks and never fake success.
- **Reactive Prose, Stretchtext**: text you can operate. Drag a number in a sentence and the figures that depend on it recalculate; choose how deep an article goes and the detail grows inside its sentences.
- **Pairwise Ranker, Magnet Board, Allocation Faders**: decisions made visible. Rank by answering "this or that?", sort by dropping quality magnets on a board, split a budget on faders that always add up.
- **Sieve, Build Sheet, Gate Selector**: rules you can see. Filters that show what they removed, a configurator that explains its conflicts and offers the fix, a status control shaped like the workflow it allows.
- **Undo Tree, Shadow Board**: history that branches instead of forgetting, and toolbar customisation where every tool keeps its painted outline.
- **Line Map, Notification Dial, You Draw It**: structure drawn as a transit map, a setting that shows its consequence before you commit, and a chart that asks for your guess before it shows the answer.
- **Splice**: choosing as the main act. Assemble one text from the best sentences of se
```
