-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[Chip][material-next] Add Material You Chip component #38927
Conversation
Netlify deploy preview@mui/material-next: parsed: -0.33% 😍, gzip: +0.86% Bundle size reportDetails of bundle changes (Toolpad) |
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.
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.
Overall this looks good to me. Great job, and a very nice next step in bringing material v3 to Material UI!
Couple of questions/remarks:
- The reference spec includes custom leading and trailing icons. It's unclear to me if this is currently supported by the component. If so, it might make sense to include an example in the playground.
- The material v3 design kit includes examples of Chips with fully rounded corners. Is this something we want to support out-of-the-box as well?
- The focus state on the deletable chip seems to be targeting the entire chip instead of just the close button. It also appears the close/delete button does not get triggered by an enter keypress.
- In light mode the primary and secondary color chips look almost indistinguishable from each other (only the text color appears to change very slightly). In dark mode the difference is much more noticeable.
- The default color (when no color prop is defined) appears to be secondary. Should this be primary instead?
Thanks for the review @mj12albert and @DavidCnoops. Regarding your feedback:
Let me know what you think. |
Co-authored-by: Albert Yu <[email protected]> Signed-off-by: Diego Andai <[email protected]>
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.
Small things I noticed, the component iself looks good to me 👍
Chip issue: #38024
Material You umbrella issue: #29345
Closes: #38024
Changes
Breaking changes
https://github.com/mui/material-ui/pull/38927/files#diff-9548901bac6f3274c402a36fad9b83afe49cf663499e51d9fe306195d149a4a1
Playground
Link: https://deploy-preview-38927--material-ui.netlify.app/material-ui/react-chip/#material-you-version