Skip to content

Conversation

@teunlao
Copy link

@teunlao teunlao commented Dec 4, 2025

📝 Description

Closes #10513

Normalize base styles in recipes to prevent shorthand properties from overwriting variant styles.

⛳️ Current behavior (updates)

When using shorthand properties like rounded in both base and variants, the base value can overwrite the variant value during CSS generation because base styles are not normalized.

🚀 New behavior

Base styles are now normalized the same way as variant styles, ensuring proper merge behavior.

💣 Is this a breaking change (Yes/No):

No

@changeset-bot
Copy link

changeset-bot bot commented Dec 4, 2025

🦋 Changeset detected

Latest commit: 2063e61

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

This PR includes changesets to release 4 packages
Name Type
@chakra-ui/react Patch
@chakra-ui/charts Patch
@chakra-ui/cli Patch
@chakra-ui/panda-preset 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 Dec 4, 2025

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

Project Deployment Preview Updated (UTC)
chakra-ui-storybook Ready Ready Preview Dec 4, 2025 11:49am
chakra-v3-docs Ready Ready Preview Dec 4, 2025 11:49am

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.

variant styles overwritten by base when using shorthand properties

1 participant