Skip to content

[Grid] Rename justify prop to justifyContent#21845

Merged
mnajdova merged 9 commits intomui:nextfrom
mnajdova:feat/grid-justify-content
Jul 21, 2020
Merged

[Grid] Rename justify prop to justifyContent#21845
mnajdova merged 9 commits intomui:nextfrom
mnajdova:feat/grid-justify-content

Conversation

@mnajdova
Copy link
Member

@mnajdova mnajdova commented Jul 19, 2020

Breaking change

Rename justify prop with justifyContent to be aligned with the CSS property name.

-<Grid justify="center">
+<Grid justifyContent="center">

It should also help reduce the API gap with the props of the <Box />.

@oliviertassinari oliviertassinari added the breaking change Introduces changes that are not backward compatible. label Jul 19, 2020
@mnajdova mnajdova added the component: Grid The React component. label Jul 19, 2020
@mui-pr-bot
Copy link

mui-pr-bot commented Jul 19, 2020

Details of bundle changes

Generated by 🚫 dangerJS against cdc8ff6

Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
@eps1lon eps1lon added this to the v5 milestone Jul 20, 2020
@mnajdova
Copy link
Member Author

mnajdova commented Jul 20, 2020

@oliviertassinari how can I see more logs from the test failiars? I cannot repro locally 😕

@oliviertassinari
Copy link
Member

@mnajdova Do you have enough right to rerun the builds? Seemed to be enough.

@mnajdova mnajdova merged commit 8807cc6 into mui:next Jul 21, 2020
@oliviertassinari

This comment has been minimized.

@eps1lon eps1lon mentioned this pull request Aug 5, 2020
42 tasks
@davidpham87
Copy link

This breaking change need not to happen: you could equally support justify and justifyContent and keep old code working.

@mbrookes
Copy link
Member

mbrookes commented Sep 23, 2020

@davidpham87 That will be done as a deprecation in v4.

oliviertassinari pushed a commit to oliviertassinari/material-ui that referenced this pull request Dec 20, 2020
oliviertassinari pushed a commit to oliviertassinari/material-ui that referenced this pull request Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Introduces changes that are not backward compatible. component: Grid The React component.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants