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

[DataGrid] Refactor: create base MenuList props #16481

Merged
merged 4 commits into from
Feb 7, 2025

Conversation

romgrk
Copy link
Contributor

@romgrk romgrk commented Feb 5, 2025

Part of the design-system agnostic work.

Create base MenuList props. These are directly compatible with material props.

@romgrk romgrk added the component: data grid This is the name of the generic UI component, not the React module! label Feb 5, 2025
@romgrk romgrk requested a review from a team February 5, 2025 23:50
@mui-bot
Copy link

mui-bot commented Feb 5, 2025

Deploy preview: https://deploy-preview-16481--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 5f82029

Comment on lines +43 to +44
autoFocus?: boolean;
autoFocusItem?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we instead of these have enum for autoFocus to cover both cases?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought about it but I chose to keep the API material compatible instead. I could be convinced to switch it though.

Copy link
Contributor

Choose a reason for hiding this comment

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

If that was the general approach so far (to be close to material) then let's leave it. Otherwise, I think that enum is more generic and neutral and more flexible for potential updates

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The approach is mixed, some components are directly compatibles, others are reworked when the material API is too hard to adapt for other design-systems. I'll leave it as it is for now, I might change it once I start implementing bindings for other design-systems.

@romgrk romgrk merged commit fc6cd07 into mui:master Feb 7, 2025
18 checks passed
@romgrk romgrk deleted the refactor-agnostic-menulist branch February 7, 2025 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants