8000 Fix accessibility of .org link. (#201) · pdg137/python-editor-next@1740525 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit 1740525

Browse files
Fix accessibility of .org link. (microbit-foundation#201)
Closes microbit-foundation#199
1 parent 428147e commit 1740525

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

lang/en.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,10 @@
391391
"defaultMessage": "Updated file {changeName}",
392392
"description": "Change made to file"
393393
},
394+
"visit-dot-org": {
395+
"defaultMessage": "visit microbit.org (opens in a new tab)",
396+
"description": "alt text for logo link to .org"
397+
},
394398
"webusb-download-instead": {
395399
"defaultMessage": "Download the hex file or try Chrome or Microsoft Edge.",
396400
"description": "Shown from the connect action when the user's browser doesn't support WebUSB."

src/editor/EditorArea.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ const EditorArea = ({
5656
target="_blank"
5757
rel="noopener noreferrer"
5858
>
59-
<Box width="140px" fill="brand.500">
59+
<Box
60+
width="140px"
61+
fill="brand.500"
62+
role="img"
63+
aria-label={intl.formatMessage({ id: "visit-dot-org" })}
64+
>
6065
{brand.horizontalLogo}
6166
</Box>
6267
</Link>

src/messages/en.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,12 @@
785785
"value": "changeName"
786786
}
787787
],
788+
"visit-dot-org": [
789+
{
790+
"type": 0,
791+
"value": "visit microbit.org (opens in a new tab)"
792+
}
793+
],
788794
"webusb-download-instead": [
789795
{
790796
"type": 0,

0 commit comments

Comments
 (0)
0