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

* Added missing icon feedback

* fixed colors
This commit is contained in:
Dan Rukas authored and GitHub committed 2025-12-03 17:33:37 -05:00
1 parent ff5ead6284
commit 6566354986
1 file changed
+3 -8
@@ -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>
);
};