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] Fix getSelector prefers-color-scheme to be object #43237

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

siriwatknp
Copy link
Member

closes #43183

@mui-bot
Copy link

mui-bot commented Aug 9, 2024

Netlify deploy preview

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

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against cd5410b

@@ -33,7 +33,9 @@ export default <
if (rule === 'media') {
return {
':root': css,
'@media (prefers-color-scheme: dark) { :root': excludedVariables,
Copy link
Member Author

@siriwatknp siriwatknp Aug 9, 2024

Choose a reason for hiding this comment

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

This works with @emotion/react, but not with @emotion/serialize that Pigment CSS is using. May be due to Stylis processor.

Copy link
Contributor

@brijeshb42 brijeshb42 left a comment

Choose a reason for hiding this comment

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

Thanks for the fix.

@siriwatknp siriwatknp merged commit 81b6372 into mui:next Aug 12, 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 v6.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to build Pigment CSS when both colorSchemes are provided
3 participants