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

[material-ui][pigment-css] Support project without enabling CSS variables #44171

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

siriwatknp
Copy link
Member

closes #43750

Root cause

The .toRuntimeSource is required in the theme for some components that access runtime theme's transitions (e.g. Slide) but the property only exist when using CSS theme variables.

Pigment CSS should work with any theme, so the fix is to also add the property to the theme when CSS variables is not enabled.


@siriwatknp siriwatknp added package: material-ui Specific to @mui/material package: pigment-css Specific to @pigment-css/* labels Oct 21, 2024
@mui-bot
Copy link

mui-bot commented Oct 21, 2024

Netlify deploy preview

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

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 1ca9340

@siriwatknp siriwatknp merged commit 85422cf into mui:master Oct 21, 2024
20 of 21 checks passed
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: pigment-css Specific to @pigment-css/*
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slide component throws error in Pigment project
3 participants