Skip to content

WIP: feat: Make top strip of title block opt in sticky - #6606

Open
ryanseddon wants to merge 9 commits into
mainfrom
ryan/KZN-3981/sticky-header
Open

WIP: feat: Make top strip of title block opt in sticky#6606
ryanseddon wants to merge 9 commits into
mainfrom
ryan/KZN-3981/sticky-header

Conversation

@ryanseddon

@ryanseddon ryanseddon commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

This uses position sticky by setting titleblock container to display: contents this might break stuff, and be an a11y issue.

Testing is needed

Cursorful.Video.mp4

Important: Request PR reviews on Slack

Please reach out to the design system team on Slack in #help_design_system for PR reviews. GitHub notifications (e.g. from tagging a person) are not actively monitored.

Why

What

@changeset-bot

changeset-bot Bot commented Apr 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: dcd5f20

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@kaizen/components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

✨ Here is your branch preview! ✨

Last updated for commit dcd5f20: docs(TitleBlock): use design-token CSS vars instead of hardcoded hex

@ryanseddon
ryanseddon force-pushed the ryan/KZN-3981/sticky-header branch 2 times, most recently from f3b93e3 to a2089c8 Compare April 21, 2026 05:42
ryanseddon and others added 3 commits July 6, 2026 14:24
Opt-in stickyTopStripWithinContainer prop to make Titleblock top row
element stick when TB is scrolled out of viewport.
The sticky top strip offset is now driven by the --app-chrome-sticky-offset
CSS custom property (set by the app chrome in the unified-home repo), falling
back to the 72px navigation bar height when unset.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Kitty-Al
Kitty-Al force-pushed the ryan/KZN-3981/sticky-header branch from 1023681 to af6eb26 Compare July 6, 2026 04:54
Kitty-Al and others added 6 commits July 7, 2026 13:55
Add a story showing a GlobalNotification banner sticking above a sticky
TitleBlock, following the additive `--titleblock-sticky-offset` pattern.
Add a fake AppChrome nav to the existing sticky scrollable story, and make
both the fake nav and `--app-chrome-sticky-offset` collapse below 1080px to
match AppChrome's hamburger breakpoint.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Rename `stickyTopStripWithinContainer` prop (and its CSS class) to `sticky`
- Add JSDoc describing the sticky offset contract
- Fix `length-zero-no-unit` (0px -> 0) in the sticky top calc
- Clarify the changeset description

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Remove `sticky: true` from meta.args so non-sticky stories no longer render
in display:contents sticky mode; the two sticky demos set it locally.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replace hex colours in the sticky story fixtures with token vars:
--color-white, --color-purple-800 (fake nav), --border-solid-border-color.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

2 participants