Skip to content

Navbar: stop the theme toggler's hidden label from widening mobile pages - #2850

Merged
chalin merged 14 commits into
docsy:mainfrom
chalin:chalin-m24-navbar-toggler-overflow-2026-1006
Oct 6, 2026
Merged

chalin merged 14 commits into
docsy:mainfrom
chalin:chalin-m24-navbar-toggler-overflow-2026-1006

Conversation

@chalin

@chalin chalin commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator
  • Scope:
  • Out of scope:
    • overflow causes outside the navbar, such as wide formulas on docsy.dev pages (pre-existing)
    • pre-existing navbar issues found in review: shared-chrome and RTL scroll indicators, open dropdowns after a sideways swipe, long site titles (filed)
    • any navbar redesign
  • Fix: one SCSS rule, on the toggle button rather than its menu container, with the rationale in the rule's comment
  • Regression test: a js-runtime probe on its own fixture site, seen red without the fix
  • Overflow guard: shortens the default fixture title, which overflowed phone navbars on Linux, and regenerates the goldens
  • Preview(s):

chalin added 2 commits October 6, 2026 10:29
- Contains the light/dark toggle's visually-hidden label, which escaped the mobile navbar scroller and widened the page since 0.17.0
- Adds a toggler fixture site with a short title: the default fixture title alone overflows a phone navbar
- Keeps the toggler off the features site: dark-mode.js overrides the dark probes' forced theme
- Covers the dropdown, which escapes the scroller by design, staying within the device width
@chalin
chalin requested a review from a team October 6, 2026 14:34
@chalin chalin added this to the 0.18.0 milestone Oct 6, 2026
@netlify

netlify Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for docsydocs ready!

Name Link
🔨 Latest commit 312eb65
🔍 Latest deploy log https://app.netlify.com/projects/docsydocs/deploys/6ac5380f580a50000843b180
😎 Deploy Preview https://deploy-preview-2850--docsydocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

chalin added 11 commits October 6, 2026 10:43
- Asserts each full-page shot is exactly viewport-wide before any golden write or compare, so overflow can't be baked into a golden
- Shortens the default fixture title to a constant: the old one overflowed phone navbars on Linux, which the Linux mobile goldens recorded as 405 px pages
- Regenerates the Darwin goldens for the new title; the Linux ones follow from CI
- Keeps the fixture name visible in screenshots, tab titles, and llms.txt, at a length that fits a phone navbar
- Regenerates the Darwin goldens; the Linux ones follow from CI
- Checks the overflow guard after the golden comparison, so a failing shot still writes its actual image and counts as compared; update mode still refuses before writing
- Records in comments why the rule sits on the button, and why the fixture title defaults to `NAME fixture`
- Trims the fix's changelog line to the user-visible change; adds a For maintainers line for the new checks

Review: r1.1-r1.6
- Hit-tests an open-menu option: a positioned menu container clips the dropdown inside the navbar scroller while its box still reads as on screen
- Writes the actual image whenever the overflow guard rejects a shot, including update mode and an overflowing golden that matches
- Drops a fixture-title comment claim that only the visual fixture's guard backs

Review: r2.1-r2.3
- Documents the full-page width requirement in the visual-suite README, including that refreshing goldens can't fix a guard failure
- Gives the toggler fixture a short title, so only the toggler label can widen its page
- Narrows the changelog trigger to sites whose navbar scrolls

Review: r3.1-r3.7, r3.9, r3.10
- Moves the refresh caveat into the README's refresh section, where it meets the "CI must then go green" step it qualifies
- Points the guard comment at the README, keeping only the comparison-order reason
- Words the changelog trigger as the navbar menu scrolling sideways

Review: r5.6, r5.9-r5.12
…oggler-overflow-2026-1006

# Conflicts:
#	docsy.dev/content/en/project/about/changelog.md
#	docsy.dev/link-cache.jsonc
@chalin
chalin merged commit 61f22ac into docsy:main Oct 6, 2026
14 checks passed
@chalin
chalin deleted the chalin-m24-navbar-toggler-overflow-2026-1006 branch October 6, 2026 18:12
chalin added a commit that referenced this pull request Oct 7, 2026
- Contributes to #2775
- **Scope**: the 0.18.0 artifacts refreshed for the merges after #2840 (`0fdf3a6f` to `64411422`), merged `main` only; version guidance follows the changelog's official support policy
  - **Release post**
    - Linux Foundation stated as Docsy's home, with the module-path migration and canonical-path cleanup
    - `llms.txt` section (#2841, #2851)
    - Hugo section routing to the companion
    - Default script-dependency versions, with a reconcile action for existing overrides
    - Override notes as a `<details>` under the Upgrade step
  - **Hugo 0.165.0-0.166.0 upgrade guide**, new: the companion carrying the Hugo mechanics (the 0.16.0 model), one action block per change
  - **Changelog**, **user guide**, **maintainer notes**: aligned with the posts (one home per fact; the guide owns the evergreen rules the posts point to)
  - **Agent-support page**: reorganized around parallel Markdown-output and `llms.txt` sections, in Hugo's glossary terms (site, project, site root)
  - **Theme** (widening): `all.llms.txt` no longer lists an `AGENTS.md` page, a docsy.dev experiment from #2605 that leaked into the theme; `llms.txt` golden updated
  - **Version params**: both posts freeze every version param they render; the toolchain-versions test guards the frozen script pins and the companion's title bound
  - Post dates set; `draft: true` kept
- **Out of scope**
  - Tag-time fields: draft flip, version stamp, `UNRELEASED` removal, the release link
  - CSP guidance home and the print-gap line: owner decisions pending
  - The dropped `AGENTS.md` `llms.txt` line: no changelog or post mention (experimental, docsy.dev-only; owner call)
  - Relative links in Markdown output versions: pre-existing, #2858
- **Coverage** (ledger, ten rows)
  - #2850: changelog, post (Other notable changes)
  - #2852: changelog, post, companion guide
  - #2851: user guide, changelog, post
  - #2853: post table
  - #2792: changelog, post
  - #2841: user guide, changelog, post
  - #2848: changelog, post (the LF fact)
  - #2829: post version table (the Dart Sass pin)
  - #2849, #2846: internal; release notes only
  - #2854: guide only
- **Preview(s)**
  - https://deploy-preview-2855--docsydocs.netlify.app/blog/2026/0.18.0/
  - https://deploy-preview-2855--docsydocs.netlify.app/blog/2026/hugo-0.165.0+/
  - https://deploy-preview-2855--docsydocs.netlify.app/project/about/changelog/#next
  - https://deploy-preview-2855--docsydocs.netlify.app/docs/update/
  - https://deploy-preview-2855--docsydocs.netlify.app/docs/content/agent-support/
chalin added a commit to chalin/docsy that referenced this pull request Oct 7, 2026
…he changelog's

The phone-navbar fix (docsy#2850) and the jQuery conversion's search/navbar fixes
(docsy#1436) are behavior fixes, homed in the changelog's Other changes; the post
section says none and routes to the release page. Changelog: phone -> mobile.
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