Skip to content

[Grid] Rename justify prop to justifyContent#21845

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

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

Conversation

@mnajdova

@mnajdova mnajdova commented Jul 19, 2020

Copy link
Copy Markdown
Member

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

mui-pr-bot commented Jul 19, 2020

Copy link
Copy Markdown

Details of bundle changes

Generated by 🚫 dangerJS against cdc8ff6

Comment thread docs/src/pages/guides/migration-v4/migration-v4.md Outdated
Comment thread packages/material-ui/src/Grid/Grid.js Outdated
@eps1lon eps1lon added this to the v5 milestone Jul 20, 2020
@mnajdova

mnajdova commented Jul 20, 2020

Copy link
Copy Markdown
Member Author

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

@oliviertassinari

Copy link
Copy Markdown
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
Copy Markdown

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

@mbrookes

mbrookes commented Sep 23, 2020

Copy link
Copy Markdown
Member

@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