Skip to content

Commit db237b6

Browse files
committed
fix: recipe tracking
1 parent bd857a3 commit db237b6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/slick-clouds-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@pandacss/core': patch
3+
---
4+
5+
Improve recipe variant props tracking in JSX

packages/core/src/recipes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class Recipes {
127127

128128
const ROOT_SLOT = 'root'
129129

130-
if (Recipes.isSlotRecipeConfig(recipe) && recipe.slots.includes(ROOT_SLOT)) {
130+
if (Recipes.isSlotRecipeConfig(recipe)) {
131131
const jsxRootName = capitalize(ROOT_SLOT)
132132
const rootNames: string[] = [`${capitalized}.${jsxRootName}`, `${capitalized}${jsxRootName}`]
133133
jsx.push(...rootNames)

0 commit comments

Comments
 (0)