Skip to content

Commit

Permalink
show that it doesn’t clobber style.prop
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi committed Nov 18, 2024
1 parent e3c5b10 commit 78d5015
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/__tests__/builder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ describe('Builder', () => {
'responsiveStyles.small.left': 'state.left',
'responsiveStyles.small.top': 'state.top',
'responsiveStyles.large.color': 'state.color',
'style.fontSize': 'state.fontSize',
},
},
],
Expand All @@ -659,7 +660,7 @@ describe('Builder', () => {
{
"style": {
"bindingType": "expression",
"code": "{ '@media (max-width: 640px)': {\\"left\\":\\"state.left\\",\\"top\\":\\"state.top\\"}, '@media (max-width: 1200px)': {\\"color\\":\\"state.color\\"}, }",
"code": "{ fontSize: state.fontSize, '@media (max-width: 640px)': {\\"left\\":\\"state.left\\",\\"top\\":\\"state.top\\"}, '@media (max-width: 1200px)': {\\"color\\":\\"state.color\\"}, }",
"type": "single",
},
}
Expand All @@ -671,6 +672,7 @@ describe('Builder', () => {
return (
<div
style={{
fontSize: state.fontSize,
\\"@media (max-width: 640px)\\": {
left: \\"state.left\\",
top: \\"state.top\\",
Expand Down

0 comments on commit 78d5015

Please sign in to comment.