Skip to content

fix(Tabs): actions render loop#995

Merged
tenphi merged 4 commits intomainfrom
fix-tabs-loop
Feb 3, 2026
Merged

fix(Tabs): actions render loop#995
tenphi merged 4 commits intomainfrom
fix-tabs-loop

Conversation

@tenphi
Copy link
Member

@tenphi tenphi commented Feb 3, 2026

Note

Medium Risk
Touches core UI interaction paths (Tabs drag/drop, action sizing, and custom scrollbar overflow detection), so small regressions could affect layout or scroll/drag behavior across consumers.

Overview
Reduces unnecessary re-renders in Tabs by fixing the actions-width useLayoutEffect dependency in TabButton and by stabilizing the getAllowedDropOperations function passed into drag/drop hooks.

Fixes ItemButton hover/press/focus styling by no longer overriding actionProps-provided mods, and tightens useTinyScrollbar updates (overflow threshold, skip unchanged state updates, and rAF-coalesced ResizeObserver without observing children) to prevent oscillation and cascading resize work.

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

@changeset-bot
Copy link

changeset-bot bot commented Feb 3, 2026

🦋 Changeset detected

Latest commit: 78d4064

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

@vercel
Copy link

vercel bot commented Feb 3, 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 3, 2026 6:18pm
cube-ui-kit-cursor Ready Ready Preview, Comment Feb 3, 2026 6:18pm

Request Review

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

📦 NPM canary release

Deployed canary version 0.0.0-canary-f8a2283.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

🏋️ Size limit report

Name Size Passed?
All 378.71 KB (+0.02% 🔺) Yes 🎉
Tree shaking (just a Button) 57.83 KB (0% 🟰) Yes 🎉
Tree shaking (just tasty) 34.2 KB (0% 🟰) Yes 🎉

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

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

🧪 Storybook is successfully deployed!

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