-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pigment-css][demo] Improve sx prop support #41589
Conversation
Netlify deploy previewhttps://deploy-preview-41589--material-ui.netlify.app/ Bundle size report |
8bbfe5a
to
0f0e553
Compare
className={css` | ||
width: 100vw; | ||
height: 100vh; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not sx
? if it's for testing, it's fine for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mainly because I was copy pasting and sx only supports object syntax.
@@ -33,7 +33,6 @@ | |||
"@wyw-in-js/shared": "^0.5.0", | |||
"@wyw-in-js/transform": "^0.5.0", | |||
"babel-plugin-define-var": "^0.1.0", | |||
"babel-plugin-transform-react-remove-prop-types": "^0.4.24", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll move the define-var
to pigment repo later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 This is awesome!
905e90f
to
40b4988
Compare
397a355
to
9a1e6bd
Compare
transformation. It can now handle dynamic keys in the object where the keys are defined using file scoped or theme variables.
9a1e6bd
to
476a987
Compare
With this change, we are now able to build both vite and next.js demo apps without disabling sx prop transpilation. There are two commits: