shoc-frontend-new/src/test/app/(protected)
Alexandre Brandizzi d908b7e1da
[SH-117] Give work-order board indicators accessible names (#137)
* fix(work-orders): give board indicators accessible names

Two work-order indicators conveyed their state visually only.

The carried-over pill rendered a bare number whose sole description was a
title attribute. It sits beside the reschedule pill, which also renders as a
small number, so the two counters were indistinguishable without a mouse.

Past Due drove a box shadow, a tint and an icon colour, while the control kept
the fixed name "Due Date". The state read by colour alone and never reached
assistive technology.

- Carried-over pill takes the reschedule pill's shape: an accessible name plus
  a tooltip, so both counters are identifiable.
- Due Date announces the past-due state, on the Emergency dialog control and on
  the standard date popover.
- Past-due is passed separately from `highlight`, which is also raised
  transiently to draw attention to a row and is not durable state to announce.

* fix: associate past-due status with date control

---------

Co-authored-by: Alexandre Brandizzi <alexandre.naime@luby.com.br>
Co-authored-by: Codex Review Integration <codex-review@local.invalid>
2026-08-26 18:10:29 -03:00
..
employees Feat/vite typescript migration (#16) 2026-06-18 14:41:17 -03:00
pmschedules Feat/vite typescript migration (#16) 2026-06-18 14:41:17 -03:00
vendors fix(vendors): remove duplicate company heading (#139) 2026-08-26 16:45:06 +00:00
workorders [SH-117] Give work-order board indicators accessible names (#137) 2026-08-26 18:10:29 -03:00