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

[Autocomplete] Prevent tag overflow #18662

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/material-ui-lab/src/Autocomplete/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ export const styles = theme => ({
/* Styles applied to the tag elements, e.g. the chips. */
tag: {
margin: 3,
'&:last-child': {
marginRight: 5,
},
fbarbare marked this conversation as resolved.
Show resolved Hide resolved
maxWidth: 'calc(100% - 6px)',
oliviertassinari marked this conversation as resolved.
Show resolved Hide resolved
},
/* Styles applied to the tag elements, e.g. the chips if `size="small"`. */
tagSizeSmall: {
margin: 2,
maxWidth: 'calc(100% - 4px)',
},
/* Styles applied to the Input element. */
inputRoot: {
Expand Down