Skip to content

feat(tasty): extend syntax#1039

Merged
tenphi merged 5 commits intomainfrom
feat-tasty-style-extend
Feb 19, 2026
Merged

feat(tasty): extend syntax#1039
tenphi merged 5 commits intomainfrom
feat-tasty-style-extend

Conversation

@tenphi
Copy link
Copy Markdown
Member

@tenphi tenphi commented Feb 19, 2026

Note

Medium Risk
Changes core style-merging behavior used broadly across Tasty components; subtle edge cases (null/undefined/false handling and state ordering) could affect generated CSS and styling precedence.

Overview
Updates mergeStyles to support extend vs replace merging for state-map style properties: omitting '' extends parent states (preserving order, allowing per-state override/removal and @inherit repositioning), while including '' replaces the map with optional @inherit cherry-picks.

Adds null and false semantics for resetting/tombstoning properties and sub-elements (strict undefined vs null handling), reserves @inherit from being used as a state name, expands types to allow @inherit inside StyleValueStateMap, and introduces comprehensive merge-styles Vitest coverage plus documentation/spec updates.

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

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 19, 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 19, 2026 10:36am
cube-ui-kit-cursor Ready Ready Preview, Comment Feb 19, 2026 10:36am

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 19, 2026

⚠️ No Changeset found

Latest commit: 85d43ab

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@github-actions
Copy link
Copy Markdown
Contributor

📦 NPM canary release

Deployed canary version 0.0.0-canary-7e3af46.

@github-actions
Copy link
Copy Markdown
Contributor

🏋️ Size limit report

Name Size Passed?
All 355.23 KB (+0.12% 🔺) Yes 🎉
Tree shaking (just a Button) 60.5 KB (+0.7% 🔺) Yes 🎉
Tree shaking (just tasty) 36.69 KB (+1.14% 🔺) 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!

Copy link
Copy Markdown
Contributor

@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 1 potential issue.

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

Comment thread src/tasty/utils/merge-styles.ts
@tenphi tenphi merged commit ff6fa8d into main Feb 19, 2026
17 checks passed
@tenphi tenphi deleted the feat-tasty-style-extend branch February 19, 2026 11:10
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