[Grid] Add deprecation for justify prop rename#24078
[Grid] Add deprecation for justify prop rename#24078oliviertassinari merged 4 commits intomui:v4-deprecationsfrom
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.
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.
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.
These props did not exist before, I believe we should drop them.
There was a problem hiding this comment.
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.