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

[Dialog] Improve support for custom breakpoints #26092

Merged
merged 1 commit into from
May 4, 2021

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented May 2, 2021

I have found this opportunity looking into #21745 (comment). The style of the Dialog can be simplified, reducing bundle size, runtime cost maybe also a bit and setting a stone closer to the support of custom breakpoints

Before: https://609021bac16d7a0007430a6b--material-ui.netlify.app/components/dialogs#MaxWidthDialog
After: https://deploy-preview-26092--material-ui.netlify.app/components/dialogs/#optional-sizes

@oliviertassinari oliviertassinari added new feature New feature or request component: dialog This is the name of the generic UI component, not the React module! labels May 2, 2021
@mui-pr-bot
Copy link

mui-pr-bot commented May 2, 2021

Details of bundle changes

@material-ui/core: parsed: -0.11% 😍, gzip: -0.04% 😍
@material-ui/lab: parsed: -0.14% 😍, gzip: -0.04% 😍

Generated by 🚫 dangerJS against 96bc5c7

@eps1lon
Copy link
Member

eps1lon commented May 3, 2021

Demo that used these styles before and after would be nice.

@oliviertassinari
Copy link
Member Author

Added in the PR's description.

@oliviertassinari oliviertassinari merged commit 72b8c00 into mui:next May 4, 2021
@oliviertassinari oliviertassinari deleted the dialog-simplify-styles branch May 4, 2021 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: dialog This is the name of the generic UI component, not the React module! new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants