👌 move aria-label to icon link wrapper

This commit is contained in:
ghalestrilo 2020-06-18 14:21:09 -03:00
parent 52be7ef735
commit 81cf415740

View file

@ -69,7 +69,7 @@ const Icon = styled.a`
}
`;
const StyledLink = styled(Link)`
const IconLinkWrapper = styled(Link)`
width: 3rem;
margin-right: 1.25rem;
margin-left: none;
@ -97,9 +97,9 @@ const IDEViewMobile = (props) => {
return (
<Screen>
<Header>
<StyledLink to="/">
<CloseIcon viewBox="20 21 60 60" aria-hidden="true" aria-label="close header" />
</StyledLink>
<IconLinkWrapper to="/" aria-label="Return to original editor">
<CloseIcon viewBox="20 21 60 60" />
</IconLinkWrapper>
<div>
<h2>{project.name}</h2>
<h3>{selectedFile.name}</h3>