diff --git a/packages/components/src/Description/Value/styles.ts b/packages/components/src/Description/Value/styles.ts index 2335c3fa2..522d5380c 100644 --- a/packages/components/src/Description/Value/styles.ts +++ b/packages/components/src/Description/Value/styles.ts @@ -35,7 +35,9 @@ type StyledCopyIconProps = SvgIconProps & { $copyPosition: ValueProps['copyPosition']; }; -export const StyledCopyIcon = styled(CopyOutlineSm)` +export const StyledCopyIcon = styled(CopyOutlineSm, { + shouldForwardProp: (prop) => !['$copyPosition'].includes(prop), +})` margin-right: ${({ $copyPosition, theme }) => $copyPosition === 'left' ? theme.spacing(1) : ''}; margin-bottom: -4px;