Skip to content

Commit

Permalink
fix(a11y): move aria-label from svg icon to button
Browse files Browse the repository at this point in the history
  • Loading branch information
seevee committed Oct 26, 2023
1 parent 59dffd1 commit 58548ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/header/NavCloseButton/NavCloseButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ export const NavCloseButton = ({
className={classes}
onClick={onClick}
data-testid="navCloseButton"
aria-label="Close"
{...buttonProps}
type="button">
<Icon.Close size={3} aria-label="Close" />
<Icon.Close size={3} aria-hidden="true" />
</button>
)
}

0 comments on commit 58548ec

Please sign in to comment.