Skip to content

Commit

Permalink
chore: add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
astahmer committed Mar 9, 2024
1 parent 0dba019 commit 91065de
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .changeset/few-dragons-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
'@pandacss/generator': patch
'@pandacss/studio': patch
---

Fix nested `styled` factory composition

```tsx
import { styled } from '../styled-system/jsx'

const BasicBox = styled('div', { base: { fontSize: '10px' } })
const ExtendedBox1 = styled(BasicBox, { base: { fontSize: '20px' } })
const ExtendedBox2 = styled(ExtendedBox1, { base: { fontSize: '30px' } })

export const App = () => {
return (
<>
{/* ✅ fs_10px */}
<BasicBox>text1</BasicBox>
{/* ✅ fs_20px */}
<ExtendedBox1>text2</ExtendedBox1>
{/* BEFORE: ❌ fs_10px fs_30px */}
{/* NOW: ✅ fs_30px */}
<ExtendedBox2>text3</ExtendedBox2>
</>
)
}
```

0 comments on commit 91065de

Please sign in to comment.