Repository navigation
Description
Orbit's board is drag and drop. Dragging a card is how you change its state, and how you reorder within a column. There is no keyboard equivalent.
Issue #129 identifies this as the biggest known accessibility gap in the product, and says it is separable from the rest of the audit. This is that separate issue.
It matters more here than it would elsewhere, because Orbit's central claim is that it is keyboard first. A surface that cannot be operated from the keyboard is not a missing nicety, it contradicts the product.
What to build
Full keyboard operation of the board:
- Focus a card. Arrow keys move between cards within a column, and between columns.
- Pick a card up. Space or Enter enters a move mode. The card is visibly held, and the change is announced.
- Move it. Arrow keys move the held card between positions and columns, with the drop target announced as it changes.
- Drop it. Space or Enter commits. Escape cancels and returns the card to where it started, with nothing written.
- Announce everything. An
aria-liveregion says what happened: which card, from where, to where, and its new position. Somebody who cannot see the board has to be able to follow the whole operation from the announcements alone.
This is the pattern the accessible drag and drop libraries use and it is worth following rather than inventing, because it is what screen reader users already expect.
Constraints
- The realtime case. Somebody else may move the same card while it is held. Decide what happens: cancel with an announcement, or reconcile. Announce either way. A silent change under a held card is disorienting.
- Motion rules. CLAUDE.md is explicit that no layout animation is allowed on the critical path and that gesture motion is transform and opacity only. The keyboard move must not animate layout, and it must respect
prefers-reduced-motion. - Optimistic updates. The board already writes optimistically and reconciles from the realtime stream. The keyboard path goes through the same mutation, not a separate one.
- Do not regress the mouse path. Recent work fixed dragging on several boards, see #165 and #172. There are Playwright specs at
apps/web/e2e/board-drag.spec.tsandsaved-view-drag.spec.tsanddoc-drag.spec.ts. They must stay green.
Everywhere it applies
The board is the main one, but the same gap exists anywhere there is a drag:
- The issue board, by state
- Saved views reordering
- The docs tree
- Milestone reordering
Doing the board alone is a complete contribution. Say if you plan to do the others too.
Files
apps/web/src/features/issues/apps/web/src/features/docs/doc-tree.tsxapps/web/e2e/board-drag.spec.tsapps/web/src/lib/interaction.ts
Tests
Playwright, driving the keyboard only, asserting the card moved and the announcement fired. This is the kind of feature that silently breaks, so the test matters as much as the implementation.
High value
Accessibility fixes get reviewed and merged fast, per #129, and this is the highest value single one available.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsReady
Activity