Skip to content
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

[system][zero][tag] Add support for sx prop #38535

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

brijeshb42
Copy link
Contributor

User can pass object or a callback that returns an object.

@brijeshb42 brijeshb42 added the package: system Specific to @mui/system label Aug 18, 2023
@brijeshb42 brijeshb42 requested a review from mnajdova August 18, 2023 07:10
@mui-bot
Copy link

mui-bot commented Aug 18, 2023

Netlify deploy preview

https://deploy-preview-38535--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 00261dd

@mnajdova mnajdova changed the title [zero][tag] Add support for sx prop [system][zero][tag] Add support for sx prop Aug 18, 2023
Copy link
Member

@mnajdova mnajdova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should look into adding tests next - this way we can replicate most of the system tests in order to be able that all APIs work. It's hard to validate otherwise.

packages/zero-runtime/src/sx.js Outdated Show resolved Hide resolved
apps/zero-runtime-vite-app/src/App.tsx Show resolved Hide resolved
@brijeshb42 brijeshb42 force-pushed the zero-cssjs-sx branch 3 times, most recently from 43ddee8 to e24a255 Compare August 25, 2023 11:09
User can pass object or a callback that returns an object.
This is done through an intermediate babel-plugin that rewrites the
object passed to `sx` prop.
Copy link
Member

@mnajdova mnajdova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the use-cases we have on the demo seem to work, well done 👍

We should look into a simpler way of how we can test this. Should we have somehow the app deployed on netlify? It takes a lot of time to set up everything in order to review a PR. It's fine for now, because mostly I am the reviewer, but when more people will need to be involved, it is going to waste a lot of time.

@brijeshb42 brijeshb42 mentioned this pull request Aug 28, 2023
1 task
@brijeshb42 brijeshb42 merged commit f5d6f6a into mui:master Aug 28, 2023
@brijeshb42 brijeshb42 deleted the zero-cssjs-sx branch August 28, 2023 13:06
@brijeshb42
Copy link
Contributor Author

Closes #38754

mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Sep 8, 2023
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: system Specific to @mui/system
Projects
Status: Recently completed
Development

Successfully merging this pull request may close these issues.

3 participants