Skip to content

Commit

Permalink
🐛 Boolean flipped so that legacy wrapper were used on wrong state
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh committed Feb 4, 2025
1 parent e699686 commit df3f24e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions @navikt/core/react/src/copybutton/CopyButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const CopyButton = forwardRef<HTMLButtonElement, CopyButtonProps>(

const copyIcon = active
? activeIcon ?? (
<LegacyIconWrapper useLegacy={!!themeContext}>
<LegacyIconWrapper useLegacy={!themeContext}>
<CheckmarkIcon
aria-hidden={!!text}
title={text ? undefined : activeString}
Expand All @@ -131,7 +131,7 @@ export const CopyButton = forwardRef<HTMLButtonElement, CopyButtonProps>(
</LegacyIconWrapper>
)
: icon ?? (
<LegacyIconWrapper useLegacy={!!themeContext}>
<LegacyIconWrapper useLegacy={!themeContext}>
<FilesIcon
aria-hidden={!!text}
title={text ? undefined : title || translate("title")}
Expand Down

0 comments on commit df3f24e

Please sign in to comment.