Skip to content

Comments

feat: add default type styling support for Tabs component#1044

Merged
tenphi merged 7 commits intomainfrom
fix-tabs-default-type
Feb 20, 2026
Merged

feat: add default type styling support for Tabs component#1044
tenphi merged 7 commits intomainfrom
fix-tabs-default-type

Conversation

@tenphi
Copy link
Member

@tenphi tenphi commented Feb 20, 2026

Note

Medium Risk
Mostly styling/layout changes but they affect core Tabs rendering and drag-and-drop/focus behaviors, so regressions could show up across multiple variants and browsers (e.g., ResizeObserver availability/behavior).

Overview
Adds default-type styling support for Tabs, including new spacing/padding rules for prefix/suffix and tab containers, adjusted hover/radius behavior, and a CSS-variable driven tabListPadding implementation.

Updates Tabs.Action to automatically choose outline styling for type="default" and neutral for other tab types (while preserving file-type dividers), and updates the Storybook prefix/suffix example to use Tabs.Action.

Improves interaction robustness by switching the reorder drop indicator refresh from DOM mutation watching to ResizeObserver, and by clearing stale focus state synchronously when a focused control becomes disabled in useFocus.

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

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

changeset-bot bot commented Feb 20, 2026

🦋 Changeset detected

Latest commit: b7d41c4

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

vercel bot commented Feb 20, 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 20, 2026 4:57pm
cube-ui-kit-cursor Ready Ready Preview, Comment Feb 20, 2026 4:57pm

Request Review

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2026

📦 NPM canary release

Deployed canary version 0.0.0-canary-3d9ef9b.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2026

🏋️ Size limit report

Name Size Passed?
All 355.75 KB (+0.02% 🔺) Yes 🎉
Tree shaking (just a Button) 60.45 KB (0% 🟰) Yes 🎉
Tree shaking (just tasty) 36.71 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 20, 2026

🧪 Storybook is successfully deployed!

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@tenphi tenphi merged commit 696fd59 into main Feb 20, 2026
16 checks passed
@tenphi tenphi deleted the fix-tabs-default-type branch February 20, 2026 16:58
@github-actions github-actions bot mentioned this pull request Feb 20, 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