This PR addresses the issue described in #7164, where the Chip component's padding for the Transparent variant was not correctly aligned. The following changes have been made: The padding-left for the Transparent variant is now set to 2px to improve alignment. Other chip variants retain the default horizontal padding values. These changes ensure that the Transparent chip variant is rendered consistently with the rest of the design, as described in #7164. See screenshots below for before and after comparison: Before:   After:   Please review @Bonapara and let me know if you have any feedback or concerns. --------- Co-authored-by: guillim <guigloo@msn.com>
This commit is contained in:
@ -8,7 +8,7 @@ const StyledOuterContainer = styled.div<{
|
||||
display: flex;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
padding-left: 6px;
|
||||
padding-left: 8px;
|
||||
width: 100%;
|
||||
`;
|
||||
|
||||
|
||||
@ -115,6 +115,11 @@ const StyledContainer = withTheme(styled.div<
|
||||
& > svg {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
padding-left: ${({ theme, variant }) =>
|
||||
variant === ChipVariant.Transparent
|
||||
? theme.spacing(0)
|
||||
: 'var(--chip-horizontal-padding)'};
|
||||
`);
|
||||
|
||||
export const Chip = ({
|
||||
|
||||
Reference in New Issue
Block a user