From fa18032f538655452e501079b306e4a314480da6 Mon Sep 17 00:00:00 2001 From: Chris Vincent Date: Wed, 15 Nov 2023 09:47:03 -0700 Subject: [PATCH] fix(a11y): move aria-label from svg icon to button (#2640) Co-authored-by: Chris Vincent Co-authored-by: Brandon Lenz <15805554+brandonlenz@users.noreply.github.com> --- src/components/header/NavCloseButton/NavCloseButton.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/header/NavCloseButton/NavCloseButton.tsx b/src/components/header/NavCloseButton/NavCloseButton.tsx index 6beba0e8c6..d67164d301 100644 --- a/src/components/header/NavCloseButton/NavCloseButton.tsx +++ b/src/components/header/NavCloseButton/NavCloseButton.tsx @@ -15,9 +15,10 @@ export const NavCloseButton = ({ className={classes} onClick={onClick} data-testid="navCloseButton" + aria-label="Close Navigation Menu" {...buttonProps} type="button"> - +