Skip to content

fix(Tabs): hidden init#1101

Merged
tenphi merged 1 commit intomainfrom
fix-tabs-hidden-init
Mar 26, 2026
Merged

fix(Tabs): hidden init#1101
tenphi merged 1 commit intomainfrom
fix-tabs-hidden-init

Conversation

@tenphi
Copy link
Copy Markdown
Member

@tenphi tenphi commented Mar 26, 2026

Note

Low Risk
Low risk UI behavior change limited to tab indicator positioning; main risk is potential ResizeObserver edge cases/perf in unusual layout scenarios.

Overview
Fixes the tab selection indicator failing to appear when Tabs initially renders inside a hidden/collapsed container.

useTabIndicator now attaches a ResizeObserver to the tabs container and triggers updateIndicator() when the container width transitions from 0 to a non-zero value, ensuring the indicator recalculates once the container becomes visible. A changeset bumps @cube-dev/ui-kit with a patch release note.

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

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 26, 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 Mar 26, 2026 3:29pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 26, 2026

🦋 Changeset detected

Latest commit: ec7d68a

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 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
Copy link
Copy Markdown
Contributor

📦 NPM canary release

Deployed canary version 0.0.0-canary-6096e33.

@github-actions
Copy link
Copy Markdown
Contributor

🧪 Storybook is successfully deployed!

@github-actions
Copy link
Copy Markdown
Contributor

🏋️ Size limit report

Name Size Passed?
All 360.76 KB (+0.02% 🔺) Yes 🎉
Tree shaking (just a Button) 101.22 KB (0% 🟰) Yes 🎉

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

@tenphi tenphi merged commit 76e8365 into main Mar 26, 2026
16 checks passed
@tenphi tenphi deleted the fix-tabs-hidden-init branch March 26, 2026 15:46
@github-actions github-actions Bot mentioned this pull request Mar 26, 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