fix: make the copy icon in the copy button for code blocks visible
Some checks failed
Deploy Next.js application / deploy (push) Failing after 10m3s

This commit is contained in:
Dorian Niemiec 2024-09-22 07:28:42 +02:00
parent d32e6826b5
commit f25ad2d6a7

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 p-2 rounded"
className="absolute top-2 right-2 bg-accent hover:bg-muted text-black dark:text-white p-2 rounded"
size={"icon"}
>
{copied ? <Check className="w-5 h-5" /> : <Copy className="w-5 h-5" />}