ADR-0139 — An empty list is announced from outside the listbox
Status: Accepted · Date: 2026-08-30 · Track: 002 close-out (LEDGER drain) · Supersedes: nothing · Builds on: ADR-0037, ADR-0038
Context
Combobox and MultiSelect both draw a row reading "No matches" when a
filter returns nothing, as an <li role="presentation"> inside the listbox.
That role is right: the row is not an option, and the suite's "no options"
assertions depend on it not being one.
Nothing said it out loud. A reader who types four characters into a
twelve-option list gets silence — no option is announced because there are
none, the row is presentational, and aria-expanded stays true. Two
components have the same gap, MultiSelect having reproduced Combobox's
markup verbatim rather than deciding it alone (LEDGER, ADR-0038), so it is one
decision with two emitters.
Two answers were available:
- Collapse on empty — set
aria-expanded="false"and unmount the list. - A live region — keep the popup, announce the message.
Decision
A polite role="status" region in the component root, rendered always and
filled conditionally. Four parts, each of which is the part that is easy to
get wrong:
aria-expandedstaystrue. The popup is displayed — it is showing a message — and a state that contradicts the screen is worse than one that is merely uninformative. Collapsing would also throw away the drawn message every sighted user relies on, to fix a problem only a reader has.- The region is outside the listbox. A listbox's children are options and
groups; a live region among them is not a thing ARIA defines, and the drawn
row keeps
role="presentation"for the same reason it always had it. - It is mounted empty and filled later, never mounted full. A live region that arrives with its text already inside it is not reliably announced — assistive technology watches an existing region for changes. This is the half a test asserts and a screenshot cannot.
- The hiding is restated per component (
.lk-combobox__status,.lk-multiselect__status) rather than borrowing.visually-hidden, which lives in the a11y layer outside the component layer's two-file allowlist — the.lk-datetime__wd-fullprecedent, two components over (ADR-0023).
Consequences
- The next filtered collection this design system gains inherits the rule rather than the gap: draw the empty state, announce it from a region beside the popup, leave the expanded state telling the truth.
- The message a caller passes as
emptyLabelis now spoken as well as drawn, so it is a sentence a reader hears out of context — "No zones", not "None". - Three mutations were watched failing (unconditional text, the role changed, the region mounted only when there is something to say), each killing tests in both components.
Source: docs/decisions/0139-an-empty-list-is-announced-from-outside-the-listbox.md