Fact tabs: one corner radius for the tab, the joins and the box
Back to our planSummary
On the Fact tabs, the curved joins beside the open tab are tighter than the tab's own corners and the box's corners, so one corner looks pointed and there is extra space in it. Every curve around the tabs should use one radius.
Details
Today the open tab's top corners are 12px, the curved joins (where the tab meets the box's top edge) are 8px, and the box's corners are 16px. The owner asked on 2026-11-06 (Claude chat, from his phone) for the outer and inner rounding to be equal. This is item 5 and 6 of the Symmetry and Alignment baseline (same structure, same alignment).
Plan: one radius variable for the tab corners, the joins and the box corners, so they cannot drift apart again. A test checks that all three read the same variable.
Acceptance criteria
- The tab's top corners, the two curved joins and the box's corners have the same radius at every width, light and dark
- That radius is defined once (
--tabs-radiusinTabs.client.tsx); the joins' size follows it - The curved joins still sit flush against the tab's side and the box's top edge, with no gap, step or overlap into a neighbouring tab (checked with a 4x zoom)
- A unit test pins the single definition; the existing e2e alignment checks still pass at six widths
Files likely touched
src/platform/ui/Tabs.client.tsx, Tabs.look.test.tsx, Tabs.client.test.tsx, docs/ui/component-set.md
Must not touch
Content, FactCard, FactTabs, the CMS
Generated by Claude Code, opens in a new tab