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][ToggleButton] Convert to support CSS extraction #41782

Merged
merged 5 commits into from Apr 10, 2024

Conversation

lhilgert9
Copy link
Contributor

@lhilgert9 lhilgert9 commented Apr 5, 2024

Part of #41273.

Convert ToggleButton and ToggleButtonGroup to support CSS extraction.

The Customized Dividers rendering is buggy. In the deploy preview it works totally fine: https://deploy-preview-41782--material-ui.netlify.app/material-ui/react-toggle-button/#customization . The background colour of the parent paper element is somehow set incorrectly. Maybe someone has an idea why this could be?

Bildschirmfoto 2024-04-05 um 18 33 48 Bildschirmfoto 2024-04-05 um 18 34 00 Bildschirmfoto 2024-04-05 um 18 34 15

@mui-bot
Copy link

mui-bot commented Apr 5, 2024

Netlify deploy preview

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

@material-ui/core: parsed: +0.16% , gzip: +0.06%
@material-ui/lab: parsed: +0.32% , gzip: +0.10%

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against fb11723

@lhilgert9 lhilgert9 marked this pull request as ready for review April 5, 2024 16:39
@danilo-leal danilo-leal added component: toggle button This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material labels Apr 5, 2024
@zannager zannager requested a review from siriwatknp April 8, 2024 13:33
Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

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

👍 This is AWESOME!

@siriwatknp
Copy link
Member

The Customized Dividers rendering is buggy

No worries, that's because the demo does not use CSS theme variables yet but it's out of the scope of this PR. The rest looks good.

@siriwatknp siriwatknp enabled auto-merge (squash) April 10, 2024 03:41
@siriwatknp siriwatknp merged commit 3cde1e7 into mui:next Apr 10, 2024
18 of 19 checks passed
@lhilgert9 lhilgert9 deleted the toggle-button-css-extraction branch April 10, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: toggle button This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material v6.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants