Skip to content

Commit

Permalink
[joy-ui][Autocomplete] Fix text overflow in Chip (mui#40229)
Browse files Browse the repository at this point in the history
Co-authored-by: ZeeshanTamboli <[email protected]>
  • Loading branch information
PunitSoniME and ZeeshanTamboli authored Mar 2, 2024
1 parent 6d168ac commit 8637c07
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/data/joy/components/autocomplete/CustomTags.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default function CustomTags() {
variant="solid"
color="primary"
endDecorator={<Close fontSize="sm" />}
sx={{ minWidth: 0 }}
{...getTagProps({ index })}
>
{item.title}
Expand Down
1 change: 1 addition & 0 deletions docs/data/joy/components/autocomplete/CustomTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default function CustomTags() {
variant="solid"
color="primary"
endDecorator={<Close fontSize="sm" />}
sx={{ minWidth: 0 }}
{...getTagProps({ index })}
>
{item.title}
Expand Down
1 change: 1 addition & 0 deletions docs/data/joy/components/autocomplete/FixedTags.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default function FixedTags() {
<Chip
variant="soft"
color="neutral"
sx={{ minWidth: 0 }}
{...getTagProps({ index })}
disabled={fixedOptions.indexOf(option) !== -1}
>
Expand Down
1 change: 1 addition & 0 deletions docs/data/joy/components/autocomplete/FixedTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default function FixedTags() {
<Chip
variant="soft"
color="neutral"
sx={{ minWidth: 0 }}
{...getTagProps({ index })}
disabled={fixedOptions.indexOf(option) !== -1}
>
Expand Down
1 change: 1 addition & 0 deletions packages/mui-joy/src/Autocomplete/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ const Autocomplete = React.forwardRef(function Autocomplete(
variant="soft"
color="neutral"
endDecorator={<ChipDelete {...getCustomizedTagProps({ index })} />}
sx={{ minWidth: 0 }}
>
{getOptionLabel(option)}
</Chip>
Expand Down

0 comments on commit 8637c07

Please sign in to comment.