Skip to content

Commit

Permalink
[Chip][material-ui] Outlined Chip variant is wider than the Filled co…
Browse files Browse the repository at this point in the history
…unterpart (#39342)
  • Loading branch information
chirag3003 committed Oct 9, 2023
1 parent 756bd3b commit 088e6a8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/mui-material/src/Chip/Chip.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,19 @@ const ChipLabel = styled('span', {
paddingLeft: 12,
paddingRight: 12,
whiteSpace: 'nowrap',
...(ownerState.variant === 'outlined' && {
paddingLeft: 11,
paddingRight: 11,
}),
...(ownerState.size === 'small' && {
paddingLeft: 8,
paddingRight: 8,
}),
...(ownerState.size === 'small' &&
ownerState.variant === 'outlined' && {
paddingLeft: 7,
paddingRight: 7,
}),
}));

function isDeleteKeyboardEvent(keyboardEvent) {
Expand Down

0 comments on commit 088e6a8

Please sign in to comment.