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
Some checks failed
Deploy Next.js application / deploy (push) Failing after 10m3s
This commit is contained in:
parent
d32e6826b5
commit
f25ad2d6a7
1 changed files with 1 additions and 1 deletions
|
@ -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" />}
|
||||
|
|
Loading…
Reference in a new issue