Repository navigation
Write the site header's collapsed phone bar rules once - #251
Merged
Merged
Conversation
The phone bar's grid, the places of its parts, the menu glyph's color and the search and menu buttons' taps no longer depend on the collapsed class or the width, since they show only once the bar is a grid; the collapsed class and, until the header has measured, a phone's width switch only the bar's grid, the phone margins and what shows, in seven short rules each. A spec checks that the unmeasured bar draws as the measured one at 20, 40 and 47.5rem. Agent: DEV3 (developer) Agent-Model: Anthropic Opus 5.5, Medium
rostislavrotaru
marked this pull request as ready for review
November 29, 2026 23:33
rostislavrotaru
commented
Nov 29, 2026
The phone bar spec adds a wide documentation site with a search and reads the search button and field, so the unmeasured copy's search button and the wide site's hidden Download are checked against the measured bar. Agent: DEV3 (developer) Agent-Model: Anthropic Opus 5.5, Medium
rostislavrotaru
commented
Nov 30, 2026
rostislavrotaru
left a comment
Contributor
Author
There was a problem hiding this comment.
Reviewed: #251 at 4e4e654
Verdict: Approve
Findings: 0 Should fix, 0 Low, as line comments
Why it's right: the collapsed phone bar's rules are written once, and the fit spec measures the bar at 20, 40 and 47.5 rem in both themes, the wide docs site with search included; dropping either rule fails it.
Agent: LEAD (lead)
Agent-Model: Anthropic Opus 5.5, High
Merged
rostislavrotaru
added a commit
that referenced
this pull request
Dec 1, 2026
Closes #286 Moves the kit to 0.0.48, with what has merged since 0.0.47, so apps can take the binary file note and the path tooltip from #282, and the tab marker's tone, close place and dot from #299. ## What changes - `version.json` is at 0.0.48. - `CHANGELOG.md` has the 0.0.48 section, one entry per change a consumer or docs-site reader sees, from #303 (#299), #291 (#280), #281 (#275), #285 (#282), #263 (#151), #250 (#245), #262 (#138, #223), #260 (#16), #248 (#233), #258 (#18), #268 (#28), #255 (#234), #254 (#239), #256 (#236), #253 (#238), #252 (#160), #249 (#244), #242 (#231), #269 (#261) and #259 (#26). - Left out, as changing nothing the package or the docs site shows: #251 (the header's phone-bar rules written once, the same look), #247 (workflow pins), #264 and #277 (build scripts), #266 (example names and their check), #267, #271, #272, #273, #274, #276, #289 and #290 (tests and their tools), #279 and #295 (workflow pins). ## Checks No test covers these two files. The product names check reads the new section in CI; it names no product. Agent: DEV2 (developer) Agent-Model: Anthropic Opus 5.5, Medium
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.
Issue: #243
Part (3) of the issue. The site header wrote the collapsed phone bar's rules twice: once for the collapsed class, and again inside a container query for a phone-width header that hasn't measured yet, as on a prerendered page. This writes what the bar looks like once and switches only what differs.
What changed
site-header.component.css: the phone bar's grid template, each part's grid area (brand, theme, download, find, menu, search, switch, action), the menu glyph's text color and the search and menu buttons' tap areas are unconditional. They show only once a rule makes the bar a grid, and the search and menu buttons are hidden until then. Download's tap area is still drawn only in the phone bar, so the row above 47.5rem doesn't change.site-header-fit.spec.ts: a new spec, for a site with six links and one with three links and Download, at 20, 40 and 47.5rem, in light and dark. It reads each part the phone bar lays out, with its box from the header's corner in rem, its tap area and whether it shows. It expects the unmeasured bar to equal the measured one with the theme switch in the menu.Size
The Kit bundles check's site apps, built against the packed kit on Linux:
bundle-sitebundle-site-frameChecks
Not in this PR
Moving search and Download out of the header, the other parts of #243, waits on a decision. Each site's first load is measured in its pin PR after the kit's next release.
Agent: DEV3 (developer)
Agent-Model: Anthropic Opus 5.5, Medium