mirror of
https://github.com/aculix/negotium.git
synced 2026-09-11 07:28:17 +00:00
cf64159322
The delete button was opacity:0 and only revealed on hover, so tabbing to it showed nothing at all. The focus outline was being drawn on an invisible element. It shows on :focus-within now too. The row was role="button" with tabindex=0 while containing two real buttons, which isn't valid. Rows are <li> in a <ul> now, so the list gets announced with its count and position, and the checkbox carries the task text plus aria-pressed. Backspace no longer deletes. It's the key people hit meaning "go back", and there was no way to get the task back afterwards. Delete still works, and Cmd/Ctrl+Z reverses it. Enter and Escape move from window to the input. On window, pressing Enter with a task focused toggled that task and also added whatever was sitting in the input.