Skip to content

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

Merged
siriwatknp merged 1 commit intomui:masterfrom
siriwatknp:fix/pigment-css-theme
Oct 21, 2024
Merged

[material-ui][pigment-css] Support project without enabling CSS variables#44171
siriwatknp merged 1 commit intomui:masterfrom
siriwatknp:fix/pigment-css-theme

Conversation

@siriwatknp
Copy link
Copy Markdown
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.


@mui-bot
Copy link
Copy Markdown

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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