Skip to content

Commit

Permalink
fix: copy to clipboard button label
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Sep 14, 2024
1 parent 0454035 commit ab58552
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/mdx/Code/Code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const Code = ({ children, className, ...props }: ComponentProps<'pre'>) =
<button
className="absolute right-0 top-0 m-4 flex size-8 items-center justify-center rounded-md text-outline-variant transition-colors hover:text-outline"
onClick={handleClick}
aria-label="Copy to clipboard"
>
{copied ? <TbClipboardCheck className="size-6" /> : <TbClipboard className="size-6" />}
</button>
Expand Down

0 comments on commit ab58552

Please sign in to comment.