Skip to content

Add collapsible SiteWrapper header - #302

Open
krowvin wants to merge 1 commit into
mainfrom
feature/collapsible-header
Open

Add collapsible SiteWrapper header#302
krowvin wants to merge 1 commit into
mainfrom
feature/collapsible-header

Conversation

@krowvin

@krowvin krowvin commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add an opt-in collapseHeader prop to SiteWrapper
  • hide the government banner and title/subtitle row in compact mode while retaining navigation and custom controls
  • document the new API and cover expanded and collapsed rendering with regression tests

Closes #270

Checklist

  • I updated docs/examples if the component API or behavior changed
  • I added screenshots for UI changes when useful
  • I applied exactly one version label: patch-bump, minor-bump, or major-bump

Screenshots

collapseHeader not set || collapseHeader={false}

image

collapseHeader={true} || collapseHeader

image

Release impact

minor-bump is appropriate because this adds a backward-compatible, opt-in component capability and preserves the existing expanded header by default.

Validation

  • npm test -- --run (3 files, 10 tests)
  • npm run lint
  • npx prettier --check on changed files
  • npm run build (library and docs assets built; the existing route-extraction step reported the missing @babel/parser dependency)
  • live browser verification at 407x766 for expanded and collapsed states, including the mobile navigation overlay

@github-actions

Copy link
Copy Markdown

Please set a versioning label of either major-bump, minor-bump, or patch-bump to the pull request.

@krowvin
krowvin marked this pull request as ready for review August 26, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Collapsible Header

1 participant