Skip to content

feat(Layout): add back button to header#1054

Merged
tenphi merged 1 commit intomainfrom
feat-layout-header-backbutton
Feb 25, 2026
Merged

feat(Layout): add back button to header#1054
tenphi merged 1 commit intomainfrom
feat-layout-header-backbutton

Conversation

@tenphi
Copy link
Copy Markdown
Member

@tenphi tenphi commented Feb 25, 2026

Note

Low Risk
UI-only change that adds an optional prop and conditional rendering; main risk is minor layout/spacing regressions in Layout.Header due to the grid template change.

Overview
Layout.Header now accepts an optional onBack prop; when set, it renders a neutral Button with an IconArrowLeft and aria-label="Go back" to the left of the title, and updates the header grid layout to include a new Back sub-element.

Storybook docs and stories are updated to document onBack, list Back as a sub-element, and add a new “With Back Button” example. A changeset marks @cube-dev/ui-kit for a minor release.

Written by Cursor Bugbot for commit d905c5e. This will update automatically on new commits. Configure here.

Co-authored-by: Cursor <cursoragent@cursor.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 25, 2026

🦋 Changeset detected

Latest commit: d905c5e

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

This PR includes changesets to release 1 package
Name Type
@cube-dev/ui-kit Minor

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

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cube-ui-kit Ready Ready Preview, Comment Feb 25, 2026 3:22pm
cube-ui-kit-cursor Building Building Preview, Comment Feb 25, 2026 3:22pm

Request Review

@github-actions
Copy link
Copy Markdown
Contributor

📦 NPM canary release

Deployed canary version 0.0.0-canary-006591c.

@github-actions
Copy link
Copy Markdown
Contributor

🏋️ Size limit report

Name Size Passed?
All 356.15 KB (+0.04% 🔺) Yes 🎉
Tree shaking (just a Button) 60.52 KB (0% 🟰) Yes 🎉
Tree shaking (just tasty) 36.78 KB (0% 🟰) Yes 🎉

Click here if you want to find out what is changed in this build

@github-actions
Copy link
Copy Markdown
Contributor

🧪 Storybook is successfully deployed!

@tenphi tenphi merged commit 9bbc6de into main Feb 25, 2026
17 checks passed
@tenphi tenphi deleted the feat-layout-header-backbutton branch February 25, 2026 16:08
@github-actions github-actions Bot mentioned this pull request Feb 25, 2026
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