Repository navigation
Description
Bug: task date picker makes clearing a selected date inaccessible to keyboard users
Suggested severity: P2.
The shared single-date picker renders its only clear action as aria-hidden="true" and tabIndex={-1}. This is the picker used for both Start date and Due date in task creation and task details. A person can pick a date using the keyboard but cannot reach the action that removes it.
Local component reproduction and positive control:
- Render the real DatePicker with 15 August 2026 selected, between ordinary Before and After buttons.
- Focus Before and press Tab: focus reaches the date trigger.
- Press Backspace and Delete:
onChangeis not called. - Press Tab again: focus moves directly to After, skipping the clear action. The accessibility role query finds no named clear/remove button.
- Click the visible trailing × with the pointer: the same component calls
onChange(null).
Expected: expose a named, reachable clear action and let keyboard users perform the same clear operation. The repo contract requires keyboard reachability and labelled controls; the design-system accessibility guide requires names and keyboard paths.
Root: DateTrigger's clear button explicitly hides and removes the control from the tab order. The task bindings are create and edit.
Acceptance:
- The clear action has an EN/DE/FR accessible name and a keyboard route.
- Clearing reports null once; disabled dates remain noneditable.
- Focus lands usefully after the selected value is cleared.
Evidence: date-picker.probe.test.tsx, date-picker-evidence.json (clear-pointer-only), and date-picker-run3.log (3 observation/control cases passed). The actual shared picker, react-datepicker, React and platform i18n providers run in jsdom. Parent also reproduced this in actual Chrome at localhost:3073: in a task detail selected 30 September 2026; Backspace/Delete kept the value, Tab skipped clear and focused Manage labels, and pointer clear restored Pick a date. A later native UI readback retained the empty Due date. No hardware screen-reader claim. Screenshot: parent-date-clear.png; observations: parent-browser-observations.md. #1949 covers explaining disabled controls; this enabled clear action is hidden from keyboard/AT. #1954 concerns multi-select consolidation, and #1963 concerns destructive row-action confirmation, neither this field operation.
Replay from the detached audit worktree with its installed dependencies:
/Users/yannick/.npm/_npx/22f2fe8d8bc13000/node_modules/.bin/bun x vitest run --config /Users/yannick/.codex/notes/tale-1000-additional/task-dates-next/parent-final.config.ts --silent=falseNo production target is used. Both original and isolated browser fixtures are retained; their seeders refuse to reset existing state. The final replay configuration uses the isolated search fixture.
Verified locally against 480ee6a3e6d33c3414a2c0f8a52fded1ddc4ca2d. No production testing, real provider calls or repository source edits. GitHub reporting follows independent local verification. Source comparison is in source-comparison.json; DatePicker, TasksWorkspace, task query hooks, native service, and task adapters are byte-identical to fetched main 2be6c267eaf8b7a67d0e5abe1b0b3d655eb2ca25. FilterPanel has unrelated open/disabled behavior and style changes; its single-select radio implementation is unchanged. TaskModal has unrelated title/description validation changes; its DatePicker bindings are unchanged.
Dedup searched title and full body of all 1,051 all-state issues in issues-live-batch05.json, plus all 102 baseline records. dedup-final.json records corpus hashes, all matches, specific body reviews, and exclusions. All 26 bodies #1941–1966 were read. Manual known debt and repo debt contain no matching accepted gap. Parent independently inspected the proof and source, replayed all eight observation/control cases, and reviewed relevant overlaps. A fresh dedup pass covered all 1,058 issues in issues-live-batch07.json. No matching report was found.
Parent final execution: parent-final-replay.log; all eight cases passed using isolated retained fixtures. Browser observations are confined to the explicitly named cases above.
Activity
tale-code-bot commentedon Oct 30, 2026
Already done on
main, so the Development board's task for this issue (TALE-32) is cancelled and the issue closed as completed.Evidence:
3257d0eff3c345113364dafc2303914de84d5388, "fix(ui): localize the date picker and let the keyboard clear it" (fix(ui): localize the date picker and let the keyboard clear it #3759), is an ancestor ofmainb2560c2d7d3294993e66129c891be4a059f3d6c4.packages/ui/src/components/forms/date-picker.tsxon thatmain:aria-label={clearLabel}fromt('datePicker.clear')), no longeraria-hiddenor out of the tab order;onChange(null);date-picker.test.tsxpins this: "is offered only while a date is set and the picker is enabled", "is a named button of its own, beside the trigger and not inside it" and "clears on click without opening the calendar".If something is still missing, reopen this issue and say what.