Skip to content

Commit 81cf415

Browse files
committed
👌 move aria-label to icon link wrapper
1 parent 52be7ef commit 81cf415

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client/modules/IDE/pages/IDEViewMobile.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const Icon = styled.a`
6969
}
7070
`;
7171

72-
const StyledLink = styled(Link)`
72+
const IconLinkWrapper = styled(Link)`
7373
width: 3rem;
7474
margin-right: 1.25rem;
7575
margin-left: none;
@@ -97,9 +97,9 @@ const IDEViewMobile = (props) => {
9797
return (
9898
<Screen>
9999
<Header>
100-
<StyledLink to="/">
101-
<CloseIcon viewBox="20 21 60 60" aria-hidden="true" aria-label="close header" />
102-
</StyledLink>
100+
<IconLinkWrapper to="/" aria-label="Return to original editor">
101+
<CloseIcon viewBox="20 21 60 60" />
102+
</IconLinkWrapper>
103103
<div>
104104
<h2>{project.name}</h2>
105105
<h3>{selectedFile.name}</h3>

0 commit comments

Comments
 (0)