fix(clipboard): Adds tooltip clipboard icon feedback when copy fails (#5609)

* Added missing icon feedback

* fixed colors
This commit is contained in:
Dan Rukas 2025-12-03 17:33:37 -05:00 committed by GitHub
parent ff5ead6284
commit 6566354986
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,17 +37,12 @@ const Clipboard: React.FC<ClipboardProps> = ({ children }) => {
e.stopPropagation();
handleCopy();
}}
className="text-white"
className="text-foreground"
title="Copy"
>
{copyState === 'idle' && <Icons.Copy className="h-6 w-6" />}
{copyState === 'success' && <Icons.FeedbackComplete className="h-6 w-6 text-white" />}
{copyState === 'error' && (
<Icons.ByName
name="Error"
className="h-6 w-6 text-white"
/>
)}
{copyState === 'success' && <Icons.FeedbackComplete className="h-6 w-6 text-foreground" />}
{copyState === 'error' && <Icons.StatusError className="h-6 w-6 text-foreground" />}
</Button>
);
};