Skip to content

Conversation

fedirjh
Copy link
Contributor

@fedirjh fedirjh commented May 23, 2024

Fixes #41250

cc @DiegoAndai

Details

fedirjh added 5 commits May 23, 2024 18:29
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
fedirjh added 2 commits May 24, 2024 15:09
# 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!

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