Repository navigation
fix(platform): name tasks, not ids, when dragging by keyboard - #3684
Conversation
A keyboard drag on the task Board or List spoke dnd-kit's English
defaults in every locale ("Draggable item <uuid> was moved over
droppable area <uuid>."), and the pickup line was overwritten in the
same frame.
useTaskBoardDnd now returns one accessibility contract that both
DndContexts use. The pickup names the task's key and title with its
status and position. Each move names the status and position the drop
would take, including an empty status, and a move to the slot just
spoken stays silent, so the pickup line is kept. The drop and the cancel
name the key. Positions come from the same resolveDrop arithmetic the
drop applies, and the handler records what the drop did for its line.
The title's instructions name the keys it handles: Enter opens, Space
picks up and drops, the arrow keys move, Escape cancels. A task without
a key is named by its title, and a task gone mid-drag is reported as
not moved, never by its id. EN/DE/FR under tasks.drag.
The Board's drag overlay gets an upright wrapper. dnd-kit measures the
overlay's only child, and the tilted card's box made the first arrow
press after a pickup stay in the lane (ArrowRight) or do nothing
(ArrowDown).
Docs (EN/DE/FR) describe the keyboard move. The manual layer gains
TASK-A7 for the spoken half and an automation row for the Chromium
specs.
Closes #3561
|
Independent review at I ran these directly in a separate local checkout with frozen dependencies:
This is a focused review, not a full green-gate claim. Required CI still had queued/in-progress jobs at the final readback. I did not rerun the rendered docs site or a hardware screen reader, and the component suite mocks mutation/choreography boundaries. Please retain the required final-head CI gate before merge. No merge or deployment performed. |
Keyboard dragging on Board and List now announces the task name, status and destination position in EN/DE/FR. Shared drop arithmetic keeps the announced destination consistent with the write, duplicate pickup-position announcements stay silent, and a removed task never falls back to its internal ID. An upright overlay wrapper lets the first arrow press reach the next lane.
Review corrected the EN/DE/FR docs to match the concise movement announcements. Existing title activation, focus restoration and workflow confirmation remain in place.
Validation:
Closes #3561