diff --git a/@navikt/core/react/src/copybutton/CopyButton.tsx b/@navikt/core/react/src/copybutton/CopyButton.tsx index 4725ee3466..4ea52c624f 100644 --- a/@navikt/core/react/src/copybutton/CopyButton.tsx +++ b/@navikt/core/react/src/copybutton/CopyButton.tsx @@ -120,25 +120,25 @@ export const CopyButton = forwardRef( const activeString = activeText || translate("activeText"); - const copyIcon = active - ? activeIcon ?? ( - - - - ) - : icon ?? ( - - - - ); + const copyIcon = ( + + {active + ? activeIcon ?? ( + + ) + : icon ?? ( + + )} + + ); if (themeContext) { return (