From 5c8562088d5f595a0d45677c1b93b5e509abc39e Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 4 Nov 2022 18:31:21 +0000 Subject: [PATCH] A couple of minor a11y fixes Picked up by Axe --- src/Header.tsx | 6 +++++- src/button/CopyButton.tsx | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Header.tsx b/src/Header.tsx index 9e4af88..842b695 100644 --- a/src/Header.tsx +++ b/src/Header.tsx @@ -89,7 +89,11 @@ interface HeaderLogoProps { export function HeaderLogo({ className }: HeaderLogoProps) { return ( - + ); diff --git a/src/button/CopyButton.tsx b/src/button/CopyButton.tsx index 5453f0a..281d3cb 100644 --- a/src/button/CopyButton.tsx +++ b/src/button/CopyButton.tsx @@ -48,6 +48,7 @@ export function CopyButton({ className={className} onPress={setCopied} iconStyle={isCopied ? "stroke" : "fill"} + aria-label={t("Copy")} > {isCopied ? ( <>