Repository navigation
The first tab: Tabs and LinkTabs as one anatomy (DECISIONS 358, 362) - #140
Merged
Merged
Conversation
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
marked this pull request as ready for review
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
TabsandLinkTabsbecome one anatomy, in React and the HTML skill, with logical properties so right to left mirrors:TabsListmeasures 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..tabs-scrollwrapper whose padding keeps the ring 4 clear on every side. The script adds the wrapper when a page leaves it out.focusinlistener brings the focused tab into view by the nearest way, 4 and a hairline clear.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 coverTabs(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.
LinkTabgrows 8) was rejected by the decider; she then accepted it.Checks
Lint (5 of 5 steps), both typechecks,
npm run buildandnpm run sizespass.No tests were run. The owner paused all tests until the open work is finished (DECISIONS 330, 359).
packages/react/test/first-tab.test.mjsandtools/html-skill/test/first-tab.test.mjs(the keyboard walk in Chromium and WebKit).controls-port-tabs,audit-fixes-bA3-07,html-skill,parity-2andparity-differences.mjs.Sizes
TabsListis +2.2% (38,792 → 39,633).styles.cssis +0.2%.Two small notes:
--basalt-edge-room-startonly. Every place that sets the plain--basalt-edge-roomsets it to 16 or more, so nothing differs today.z-index; document order already paints it above the divider.🤖 Generated with Claude Code