Fix aria-hidden directly on a link element

This link wouldn't have been clickable by screenreaders
This commit is contained in:
Marcus Blättermann 2023-01-24 07:41:46 +01:00
parent 6712bc0913
commit 73344b539e
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D

View File

@ -14,8 +14,8 @@ export default function ReadNext({ title, to }) {
<Label>Read next</Label>
{title}
</Link>
<Link to={to} noLinkLayout className={classes.icon} aria-hidden="true">
<Icon name="arrowright" />
<Link to={to} noLinkLayout className={classes.icon}>
<Icon name="arrowright" aria-hidden="true" />
</Link>
</div>
)