Skip to content
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

[material-ui][Grid] Deprecate wrap prop #42363

Merged
merged 13 commits into from
May 24, 2024

Conversation

fedirjh
Copy link
Contributor

@fedirjh fedirjh commented May 23, 2024

Fixes #41250

cc @DiegoAndai

Details

This commit introduces a new transformer for Grid props where 'wrap' attribute is replaced with 'flexWrap'. The transformations apply to both the component usage and themes. This change also includes relevant test cases ensuring the accuracy and idempotency of the transformations.
A new section has been added to the migration document for the Grid component. The 'wrap' prop has now been deprecated in favor of MUI's 'flexWrap' system prop. This update also includes instructions for using a codemod to help with the migration as well as the corresponding update in the codemod README.
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label May 23, 2024
@oliviertassinari oliviertassinari added the component: Grid The React component. label May 24, 2024
@zannager zannager requested a review from DiegoAndai May 24, 2024 13:35
# Conflicts:
#	docs/data/material/migration/migrating-from-deprecated-apis/migrating-from-deprecated-apis.md
#	packages/mui-codemod/README.md
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label May 24, 2024
Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @fedirjh, thanks for working on this!

Here's my review. Overall, we should only deprecate and provide the codemod, we shouldn't change or remove any logic at this point.

@fedirjh fedirjh requested a review from DiegoAndai May 24, 2024 18:32
@mui-bot
Copy link

mui-bot commented May 24, 2024

Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @fedirjh!

@DiegoAndai DiegoAndai merged commit a3fdc9f into mui:next May 24, 2024
22 checks passed
@fedirjh fedirjh deleted the grid-wrap-deprecation-v6 branch May 25, 2024 11:28
joserodolfofreitas pushed a commit to joserodolfofreitas/material-ui that referenced this pull request Jul 29, 2024
DiegoAndai added a commit to DiegoAndai/material-ui that referenced this pull request Aug 26, 2024
Michael-Hutchinson pushed a commit to Michael-Hutchinson/material-ui that referenced this pull request Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Grid The React component.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[material-ui][Grid] Deprecate the wrap prop
4 participants