Skip to content

The first tab: Tabs and LinkTabs as one anatomy (DECISIONS 358, 362) - #140

Merged
bmjcoding merged 2 commits into
mainfrom
claude/first-tab
Nov 24, 2026
Merged

bmjcoding merged 2 commits into
mainfrom
claude/first-tab

Conversation

@bmjcoding

Copy link
Copy Markdown
Owner

The first tab (DECISIONS 358, 362). The owner: "council on this one. either main or decided (1 or 2, not 3)". A handoff: the council's decision is the approval to build, and the owner sees this PR before it merges.

What it does

Tabs and LinkTabs become one anatomy, in React and the HTML skill, with logical properties so right to left mirrors:

  • The first label sits on the content's line. The row hangs into the padding by the tab's own padding (8 at 36, 10 at 48 and 56), narrowed where a box declares less room. The divider starts on the content line.
  • The chosen underline is as wide as the tab's content, and still slides. TabsList measures it when the choice, the tab's size or the direction changes.
  • LinkTabs: the first link's zero start padding is gone, and the line is inset to the label.
  • Focus is a 2px ring at +2, outside, on every horizontal tab and link tab. The skill's inset ring (DECISIONS 69) ends; it also hid the chosen underline.
  • The skill's scrolling row sits inside a .tabs-scroll wrapper whose padding keeps the ring 4 clear on every side. The script adds the wrapper when a page leaves it out.
  • Keyboard reveal: the keys focus without the browser's own scroll, and one focusin listener brings the focused tab into view by the nearest way, 4 and a hairline clear.
  • Words: foundations (three edits, plus the Link tabs entry's "the first with no start padding"), AGENTS.md (two), the CSS comments, LinkTab's doc comment, and the skill's tabs and link-tabs usage.

For the owner's eye

.review/council/first-tab/build/sheet-{1440,390}-{dark,light}.png: main above, the build below. They cover Tabs (36, 48, right to left), LinkTabs, a card with the first tab focused, the skill's tabs and link tabs, and a 16-tab row that scrolls, after the keys.

Council

Light round.

  • Drafts: Fable's two drawn options from the reserved-room decision.
  • Check: Astra scored main 8/10 and the option 9/10. Her blocking finding (the first LinkTab grows 8) was rejected by the decider; she then accepted it.
  • Decision: Opus chose 2.
  • Final position: Astra objected that the keyboard reveal was unproved. The decision was revised and proved with the keys alone in Chromium and WebKit.
  • The lead's note (the ring over the underline) was main's own fault, and this fixes it.
  • Review: not reviewed by a seat after the build.

Checks

Lint (5 of 5 steps), both typechecks, npm run build and npm run sizes pass.

No tests were run. The owner paused all tests until the open work is finished (DECISIONS 330, 359).

  • Written, not run: packages/react/test/first-tab.test.mjs and tools/html-skill/test/first-tab.test.mjs (the keyboard walk in Chromium and WebKit).
  • Updated to the new geometry: controls-port-tabs, audit-fixes-b A3-07, html-skill, parity-2 and parity-differences.mjs.
  • The skill's pixel baselines were already out of date on main, so they were not re-recorded here. That's on the backlog.

Sizes

  • TabsList is +2.2% (38,792 → 39,633).
  • styles.css is +0.2%.
  • Skill budgets rise with reasons: tabs 4,600, link-tabs 6,350, and their usage texts 1,150 and 2,750.

Two small notes:

  • The hang reads --basalt-edge-room-start only. Every place that sets the plain --basalt-edge-room sets it to 16 or more, so nothing differs today.
  • The link tab's line has no z-index; document order already paints it above the divider.

🤖 Generated with Claude Code

bmjcoding and others added 2 commits November 24, 2026 13:04
The first label sits on the content line and every tab's box hangs into the
padding by its own inline padding (8 at 36, 10 at 48 and 56), narrowed only
where a box declares less room than that and the ring's 4. The divider moves to
::before and starts on the line. The chosen line is as wide as the tab's
content: React measures the chosen tab's insets to its content (layout effect,
ResizeObserver, re-measured on a direction flip) and the indicator still
slides; the skill insets its ::after by the padding; LinkTab's line is inset
too, and the first link keeps its start padding.

Focus is the control ring at +2 on every horizontal tab and link tab: the
skill's inset tab ring (DECISIONS 69) ends. The skill's row scrolls in
.tabs-scroll, whose padding keeps the ring's 4 on every side and whose margins
give it back; the script wraps a row that lacks it, focuses with
preventScroll, and one focusin listener brings a focused tab into view by the
nearest way, with scroll-margin-inline of 4 and a hairline.

Words in foundations, AGENTS.md, the CSS comments and the skill's tabs and
link-tabs usage. Tests written for the hang, the line, the divider, RTL, the
ring and the keyboard-reveal walk in Chromium and WebKit; not run (the
owner's word). The skill's tabs budget 3700 to 4600 and link-tabs 5900 to
6350, with their usage caps, recorded in modules.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…le regenerated

modules.json merged as data: main's file with this branch's own changes (tabs and
link-tabs budgets and usage, the tabs-scroll class, the comment's added reason).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bmjcoding
bmjcoding marked this pull request as ready for review November 24, 2026 19:13
@bmjcoding
bmjcoding merged commit effd200 into main Nov 24, 2026
@bmjcoding
bmjcoding deleted the claude/first-tab branch November 24, 2026 19:13
bmjcoding added a commit that referenced this pull request Nov 24, 2026
…ize table regenerated

modules.json merged as data: main's file with this branch's own changes (the toggle and
glyph budgets and the comment's added reason).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant