diff --git a/__tests__/components/TruncatedAddress.test.tsx b/__tests__/components/TruncatedAddress.test.tsx index 9cb112c..6ca85d0 100644 --- a/__tests__/components/TruncatedAddress.test.tsx +++ b/__tests__/components/TruncatedAddress.test.tsx @@ -65,6 +65,11 @@ describe('TruncatedAddress', () => { }); expect(writeTextSpy).toHaveBeenCalledWith(ADDRESS); + expect( + screen.getByRole('button', { + name: 'Copy full address to clipboard', + }), + ).toHaveAttribute('title', 'Copy full address to clipboard'); }); it('auto-hides the tooltip after the timeout elapses', () => { diff --git a/components/ui/TruncatedAddress.tsx b/components/ui/TruncatedAddress.tsx index ae4e7ce..8d5d45d 100644 --- a/components/ui/TruncatedAddress.tsx +++ b/components/ui/TruncatedAddress.tsx @@ -165,6 +165,7 @@ export default function TruncatedAddress({ type="button" onClick={copy} aria-label="Copy full address to clipboard" + title="Copy full address to clipboard" className="shrink-0 flex items-center justify-center w-6 h-6 rounded hover:bg-gray-700 transition text-gray-400 hover:text-white pointer-events-auto" > {copied ? (