-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[Backdrop] Render children inside div #17115
[Backdrop] Render children inside div #17115
Conversation
@@ -9,6 +9,9 @@ export const styles = { | |||
root: { | |||
zIndex: -1, | |||
position: 'fixed', | |||
display: 'flex', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not used Grid as a container?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is to come with a better default. I would expect more people to want to center the child.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you agree with me?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think what @oliviertassinari meant was that a reasonable default would be to just have a center aligned child. In that case, I don't think Grid is necessary with this use case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly, it's even better if the usage of the Grid is not required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dominictwlee @oliviertassinari All right.
Details of bundle changes.Comparing: 343ae8e...1fad821
|
@dominictwlee Thanks |
Fixes bug in Backdrop: mui/material-ui#17115 Changes: mui/material-ui@v4.3.2...v4.4.3
Fixes bug in Backdrop: mui/material-ui#17115 Changes: mui/material-ui@v4.3.2...v4.4.3
fixes #17084