fix: make the copy icon in the copy button for code blocks in light mode visible
Some checks failed
Deploy Next.js application / deploy (push) Has been cancelled

This commit is contained in:
Dorian Niemiec 2024-09-22 07:21:11 +02:00
parent cb4534e3b5
commit 712887d86e

View file

@ -20,7 +20,7 @@ export default function CopyButton({ code }: { code: string }) {
return (
<Button
onClick={copyCode}
className="absolute top-2 right-2 bg-accent hover:bg-muted text-white p-2 rounded"
className="absolute top-2 right-2 bg-accent hover:bg-muted p-2 rounded"
size={"icon"}
>
{copied ? <Check className="w-5 h-5" /> : <Copy className="w-5 h-5" />}