-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
[joy-ui][Autocomplete] Fix text overflow in Chip #40229
[joy-ui][Autocomplete] Fix text overflow in Chip #40229
Conversation
Netlify deploy previewhttps://deploy-preview-40229--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
Could you provide a snapshot or sandbox that fixes the issue? |
Sure @siriwatknp Check here - https://deploy-preview-40229--material-ui.netlify.app/material-ui/react-autocomplete/#fixed-options Modify first option to lengthy value like below
Now select the modified item, it will look like below |
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 think the proper solution is to add min-width: 0
to the ChipRoot
.
Screen.Recording.2567-01-04.at.16.16.59.mov
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.
Changes implemented
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.
Done
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.
Argos CI detected one unexpected change - https://app.argos-ci.com/mui/material-ui/builds/22470/69426774. So should this change be applied only to the Chip rendered for Autocomplete - https://github.com/mui/material-ui/blob/master/packages/mui-joy/src/Autocomplete/Autocomplete.tsx#L413 and on the demos having custom chips with renderTags prop?
That makes sense, thanks @ZeeshanTamboli. Can you update the PR? |
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 made the expected changes. @PunitSoniME Thanks for opening the PR.
Co-authored-by: ZeeshanTamboli <zeeshan.tamboli@gmail.com>
resolves #40183