Repository navigation
Mark a boxed tab set's open tab with the page tabs' underline - #3209
Merged
Merged
Conversation
A boxed tab set drew its strip as a tinted band inside the card's frame, ruled off from the panel, and marked the open tab by painting its name as a white chip on that tint. That is three edges and a fill for one row of names, and a second selected-state idiom beside the page tabs' 2px rule; inside a pane the band was a box within the pane's box. A row strip, a page's or a box's, now stands on its set's own ground and marks the open tab with the 2px rule under its name. The frame and the strip's closing rule are the whole of the box. The edge presses fade into --lf-tabstrip-bg, so they follow the card ground, and the pre-upgrade band takes the same ground so nothing changes colour at upgrade. Forced colors keeps selection through the rules page tabs already had, now applied to every row strip. Side lists, a queue's column, keep their tinted index and painted face. The tab focus frame from #3193 is unchanged. Behavior change: test_an_inline_tab_keeps_its_panel_inside_one_visible_boundary now asserts that the strip's ground is the frame's, that the selected name has no fill and carries a 2px currentColor rule, and that an inactive name's rule is transparent, instead of a selected card-coloured face. Pages that relied on the tinted band to set the strip apart from its panel (code-comparison, pr-walkthrough) lose that contrast; names sit 1px higher, as on page tabs. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 20, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 20, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 20, 2026
#3209 gave boxed tab sets the page tabs' underline, but chose that mark by widget: an `lf-tabs` strip that wasn't a side list got the rule, and every other strip painted a white chip. So a page of parts on a phone, or a parts list placed in a section, drew a row like any tab strip but kept the chip. What actually decides the mark is which way the strip runs. That fact now has one home, `--lf-tabstrip-flow`. The strip's `flex-direction` reads it, and a container style query uses it to pick the mark: along a row, the open name gets the 2px rule; down a column, it gets the outlined face. Each place a strip changes direction (a side list's column and its narrow row, a page of parts' column and its phone row) now sets the token instead of `flex-direction`, and the lf-tabs-only row rules are deleted. Firefox 151+ supports style queries, and Leaf's shadow trees already depend on them. The rule's 2px now also comes out of the minimum padding, so a tab is the same height with its rule as without it. Under the old minimum, a queue's row grew 0.3px past the room its strip reserves before upgrade. **What changes on screen:** a page of parts' row (on a phone, or placed in a section) and a side list's row (a queue below 36rem) now mark the open item with the rule. Columns keep the face. Page tabs, boxed tabs and both columns are pixel-identical to main in Firefox. In forced colors, a column's open name is underlined, and unopened rules are drawn in the system background colour, in every strip. **Tests:** the new `test_a_strip_marks_its_open_tab_by_the_way_it_runs` checks both marks on a page of parts and on a queue, in both directions, and that the queue's row stays within its reserved height. It fails when the old padding minimum is put back. Also run: the parts switch test, the boxed-tab boundary test, the strip overflow test, the forced-colors page-tab test, the first-paint test, the focus-frame cases and `pnpm run check:browser`. Probes covered Firefox and Chromium, light and dark, keyboard focus with hover, and a coarse pointer at phone width. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
A boxed tab set drew its strip as a tinted band inside the card's frame, ruled off from the panel, and marked the open tab by painting its name as a white chip on that tint: three edges and a fill for one row of names, and a second selected-state idiom beside the page tabs' 2px rule. Inside a pane, the band was a box within the pane's box.
A row strip, whether a page's or a box's, now stands on its set's own ground and marks the open tab with the page tabs' 2px rule under its name. The edge presses fade into
--lf-tabstrip-bg, so they fade to the card now. The band reserved before upgrade has the same ground, so nothing changes colour when the set upgrades. Forced colors keeps selection visible through the rules page tabs already had, which now cover every row strip. Side lists keep their tinted column and painted face. The tab focus frame from #3193 is unchanged.Cost: pages that used the tint to separate the strip from its panel (code-comparison, pr-walkthrough) lose that contrast, and names sit 1px higher, as they do on page tabs.
test_an_inline_tab_keeps_its_panel_inside_one_visible_boundarynow asserts the underline instead of the face.Checked in Firefox and Chromium: at rest, inside a pane, keyboard focus with hover, dark, phone with a coarse pointer, an overflowing strip, forced colors (Chromium), and pr-walkthrough. Tests run: the edited test,
test_a_scrolled_tab_keeps_its_focus_ring_at_the_viewport(three cases),test_a_tab_strip_keeps_its_open_tab_in_its_one_row, andpnpm run check:browser.