-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[Grid] Fix regression v1 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 🚀
I think this PR broke one thing on my website. When you are combining Look The difference is on
to:
Worth to mention that before variable era everything was alright with the styles |
Thanks for the report @rroslaniec, I can confirm this is a bug, I'll open an issue to track it. |
@rroslaniec the PR to solve your issue was merged: #44663 |
closes #44321
Regression from #42574, test added.