-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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][Grid v1] Fix regression spacing prop with string value #44376
Conversation
Netlify deploy previewhttps://deploy-preview-44376--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
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.
Solution looks good 👍🏼 just have a question regarding the test
@@ -746,7 +746,7 @@ describe('Material UI <Grid />', () => { | |||
generateRowGap({ | |||
ownerState: { | |||
container: true, | |||
rowSpacing: { xs: 1, sm: 2 }, | |||
rowSpacing: { xs: 1, sm: '16px' }, |
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.
Shouldn't we keep the sm: 2
test as well instead of replacing it?
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.
Added md: '16px'
instead.
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.
LGTM 🚀
closes #44321
Regression from #42574, test added.