-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c41289a
commit d2c4c7f
Showing
5 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/pigment-css-react/tests/sx/fixtures/sx-shorthand.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
function App(props) { | ||
return ( | ||
<main> | ||
<div | ||
sx={{ | ||
color: props.tier.title === 'Professional' ? 'grey.50' : undefined, | ||
mb: 1, | ||
}} | ||
/> | ||
</main> | ||
); | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/pigment-css-react/tests/sx/fixtures/sx-shorthand.output.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.d1h14by3 { | ||
color: var(--d1h14by3-0); | ||
margin-bottom: 8px; | ||
} |
21 changes: 21 additions & 0 deletions
21
packages/pigment-css-react/tests/sx/fixtures/sx-shorthand.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { sx as _sx } from '@pigment-css/react'; | ||
function App(props) { | ||
return ( | ||
<main> | ||
<div | ||
{..._sx( | ||
{ | ||
className: 'd1h14by3', | ||
vars: { | ||
'd1h14by3-0': [ | ||
props.tier.title === 'Professional' ? 'var(--muipalette-grey-50)' : undefined, | ||
false, | ||
], | ||
}, | ||
}, | ||
{}, | ||
)} | ||
/> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters