-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[DataGrid] Add support for MUI v5 #855
[DataGrid] Add support for MUI v5 #855
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll open a separate PR in the core for the docs update and add an example that we can use as a test.
Yes, let's open a draft PR in the main repository to add a live demo in v5: https://next.material-ui.com/components/tables/#data-table, as we have in v4: https://material-ui.com/components/tables/#data-table.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good. I think that before we merge, we can:
- do the draft PR in the main repo with the package built on codesandbox-ci to make sure it works
- (optional) if we want to go the extra mile, we could reset hard the
next
branch onmaster
(in material-ui-x), apply 50a16a1, apply this PR, make sure that all the demos are working. It would help us a bit once we want to swap active development to thenext
branch (v5).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I jumped ahead and did 1. in codesandbox. There is an issue with a deprecated API: https://codesandbox.io/s/peaceful-cache-72s4k?file=/index.js
@oliviertassinari I opened a PR in core with the update in the docs -> mui/material-ui#24428 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only thing is that I also wanted to see it here mui/material-ui#24428 but the build fails and idk if is due to the grid package |
Will do that |
Is this to be changed here or in the |
Why should it be changed in the core? We changed it into the core because Material Design do no longer document the standard variant. In the data grid, I think that we need something light, not using too much space nor catching too much the eye. |
Also, Github has lines between the suggested options so there are more block-like with clear boundaries, so a more boxy design suits it. |
Closes #441
The current changes provide support for MUI v5 in the
DataGrid
component. I tested it with both v4 and v5 but what needs to be done for this to be done is to update the docs in thenext
branch on the core.I only changed the peerDep in the package.json but kept the v4 version for the root package.json and the one in the storybook and the docs so that master will remain on v4.
I've opened a separate PR in the core for the docs update and add an example that we can use as a test. You can check it here -> mui/material-ui#24428