ADR-0049 — the focus ring takes the shape of what it outlines
Date: 2026-08-22 · Status: accepted ·
Scope: apps/web/src/styles/base.css, the five Studio focus-radius
restatements · Supersedes the prescription in LEDGER rows 19/115
Context
base.css declared border-radius: 6px on a bare :focus-visible at
(0,1,0), imported after the Studio layer. Two consequences, recorded across
five conversions (Toggle, Tabs, the input family, Button/password reveal,
Card, Stat's link tile):
- It out-cascaded any single-class
lk-radius while the element held keyboard focus — a pill button, a 14px textarea or a 20px card snapped to a 6px rectangle on Tab. Studio grew a restatement per focusable family to defend against it. - On bare app focusables with no radius of their own (links, summary rows), the outline itself is what carried the 6px rounding — a rounded ring on square content.
The LEDGER rows prescribed deleting the app's line and the (then three) Studio restatements as its dead defence. The 2026-08-22 investigation corrected that: the restatements are Studio's, five families not three, and they defend every host that carries this common reset — not this app alone. What remained was a decision, not a patch.
Decision
- The app's
border-radius: 6pxon bare:focus-visibleis deleted. The ring takes each element's own shape: rounded where the element is rounded (via the outline followingborder-radius), square where it is square. No global reshaping. - Studio's five restatements stay (
.lk-btn,.lk-card/--xl, the input family,.lk-password > button,.lk-toggle, plus.lk-tabs__tab's and the later pickers'). They are the layer's defence against any host's reset and do not come out with one host's line. - The trap assertions flip.
Textarea.test.tsxandTabs.test.tsxasserted the trap existed to justify the restatement; both now assert base.css carries no bare:focus-visibleradius, so the line cannot quietly return. Mutation-checked: re-adding it fails exactly those two.
Consequences
- Bare app focusables draw a square-cornered ring where they are square. That is the call taken: the ring is an indicator, not a decoration, and it no longer disagrees with the geometry it outlines.
- A future component with its own radius no longer needs an app-side reason to restate it at focus — but Studio components keep restating, per the layer's own comments, because other hosts exist.
- Do not re-add a radius (or any geometry) to the app's bare
:focus-visible; the two flipped assertions are the gate.
Source: docs/decisions/0049-the-ring-takes-the-shape-of-what-it-outlines.md