-
-
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
[Grid] Add deprecation for justify prop rename #24078
[Grid] Add deprecation for justify prop rename #24078
Conversation
@material-ui/core: parsed: +Infinity% , gzip: +Infinity% Details of bundle changes.Comparing: e9542ee...9370c6f Details of page changes
|
/* Styles applied to the root element if `justify="center"`. */ | ||
'justify-xs-center': { | ||
/* Styles applied to the root element if `justifyContent="center"`. */ | ||
'justify-content-xs-center': { |
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.
Isn't this a breaking change?
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.
In theory, it's a breaking change. In practice, is there a use case for using these class names? I think that it's negligible. If you feel that it's too risky, happy to take a step back. I went with the fastest possible approach so far.
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.
No, I think it's pretty safe. I ignored a similar change in another deprecation PR review.
/** | ||
* Defines the number of grids the component is going to use. | ||
* It's applied for the `lg` breakpoint and wider screens if not overridden. | ||
*/ | ||
lg?: boolean | GridSize; | ||
/** | ||
* Defines the number of grids the component is going to use. | ||
* It's applied for the `md` breakpoint and wider screens if not overridden. | ||
*/ | ||
md?: boolean | GridSize; | ||
/** | ||
* Defines the number of grids the component is going to use. | ||
* It's applied for the `sm` breakpoint and wider screens if not overridden. | ||
*/ | ||
sm?: boolean | GridSize; |
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.
These props did not exist before, I believe we should drop them.
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.
These xs, sm, md, etc. props were already coming from:
We made them explicit. It's coming from the commit on v5 that I cherry-picked.
48b4603
to
5bf7047
Compare
Add deprecation for #21845.