Skip to content

Bug: task date picker makes clearing a selected date inaccessible to keyboard users #3743

Closed

Description

@yannickmonney

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:

  1. Render the real DatePicker with 15 August 2026 selected, between ordinary Before and After buttons.
  2. Focus Before and press Tab: focus reaches the date trigger.
  3. Press Backspace and Delete: onChange is not called.
  4. Press Tab again: focus moves directly to After, skipping the clear action. The accessibility role query finds no named clear/remove button.
  5. 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=false

No 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

  1. added
    agent-ready
    on Oct 29, 2026
  2. tale-code-bot commented on Oct 30, 2026

    @tale-code-bot
    Collaborator

    Already done on main, so the Development board's task for this issue (TALE-32) is cancelled and the issue closed as completed.

    Evidence:

    • Commit 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 of main b2560c2d7d3294993e66129c891be4a059f3d6c4.
    • In packages/ui/src/components/forms/date-picker.tsx on that main:
      • the clear action is a named button of its own (aria-label={clearLabel} from t('datePicker.clear')), no longer aria-hidden or out of the tab order;
      • it calls onChange(null);
      • it returns focus to the trigger;
      • it is offered only while a date is set and the picker is enabled.
    • date-picker.test.tsx pins 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions