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

Export shouldSkipGeneratingVar from Material UI #36489

Merged
merged 10 commits into from
Mar 11, 2023

Conversation

siriwatknp
Copy link
Member

@siriwatknp siriwatknp commented Mar 10, 2023

Regression from #35739, shouldSkipGeneratingVar is not exported from @mui/material/styles.

Before: https://codesandbox.io/s/material-ui-feat-joy-ui-vvvv59?file=/demo.tsx
After: https://codesandbox.io/s/material-cra-ts-forked-xkczu2?file=/src/App.tsx

There are other minor fixes that I think can be batched with this fix.

  • Extract shouldSkipGeneratingVar into a separate file for consistency between Material UI and Joy UI
  • generateCssVars type is missing
  • Some types in material-ui-next are redundant

@siriwatknp siriwatknp added typescript package: system Specific to @mui/system package: material-ui Specific to @mui/material regression A bug, but worse labels Mar 10, 2023
@mui-bot
Copy link

mui-bot commented Mar 10, 2023

Netlify deploy preview

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

Bundle size report

Details of bundle changes

Generated by 🚫 dangerJS against cce2146

@siriwatknp siriwatknp marked this pull request as ready for review March 11, 2023 06:37
@siriwatknp siriwatknp changed the title [TypeScript] Fix CSS variables related types Export shouldGeneratingVar Mar 11, 2023
@siriwatknp siriwatknp changed the title Export shouldGeneratingVar Export shouldSkipGeneratingVar from Material UI Mar 11, 2023
@siriwatknp siriwatknp merged commit dbddc26 into mui:master Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: material-ui Specific to @mui/material package: system Specific to @mui/system regression A bug, but worse typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants