👌 move aria-label to icon link wrapper
This commit is contained in:
parent
52be7ef735
commit
81cf415740
1 changed files with 4 additions and 4 deletions
|
@ -69,7 +69,7 @@ const Icon = styled.a`
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledLink = styled(Link)`
|
const IconLinkWrapper = styled(Link)`
|
||||||
width: 3rem;
|
width: 3rem;
|
||||||
margin-right: 1.25rem;
|
margin-right: 1.25rem;
|
||||||
margin-left: none;
|
margin-left: none;
|
||||||
|
@ -97,9 +97,9 @@ const IDEViewMobile = (props) => {
|
||||||
return (
|
return (
|
||||||
<Screen>
|
<Screen>
|
||||||
<Header>
|
<Header>
|
||||||
<StyledLink to="/">
|
<IconLinkWrapper to="/" aria-label="Return to original editor">
|
||||||
<CloseIcon viewBox="20 21 60 60" aria-hidden="true" aria-label="close header" />
|
<CloseIcon viewBox="20 21 60 60" />
|
||||||
</StyledLink>
|
</IconLinkWrapper>
|
||||||
<div>
|
<div>
|
||||||
<h2>{project.name}</h2>
|
<h2>{project.name}</h2>
|
||||||
<h3>{selectedFile.name}</h3>
|
<h3>{selectedFile.name}</h3>
|
||||||
|
|
Loading…
Reference in a new issue