Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Commit 88cd29f

Browse files
committed
Add alt text to social icons
1 parent 2d44fc1 commit 88cd29f

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/components/Menu.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ const Menu = props => {
1616
))}
1717
{socialChannels.map(socialChannel => (
1818
<li key={socialChannel.title}>
19-
<a href={socialChannel.link} target="_blank">
20-
<img src={socialChannel.image} />
19+
<a
20+
href={socialChannel.link}
21+
target="_blank"
22+
rel="noopener noreferrer"
23+
>
24+
<img src={socialChannel.image} alt={socialChannel.altText} />
2125
</a>
2226
</li>
2327
))}

src/data/social.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
"title": "Github",
44
"image": "/features/GitHub-Mark.svg",
55
"link": "https://github.com/secureCodeBox",
6-
"tag": "social"
6+
"altText": "github icon"
77
},
88
{
99
"title": "Twitter",
1010
"image": "/features/Twitter_Social_Icon_Circle_White.svg",
1111
"link": "https://twitter.com/securecodebox",
12-
"tag": "social"
12+
"altText": "twitter icon"
1313
},
1414
{
1515
"title": "Slack",
1616
"image": "/features/Slack_Mark_Monochrome_White.svg",
1717
"link": "https://join.slack.com/t/securecodebox/shared_invite/enQtNDU3MTUyOTM0NTMwLTJiNzg3MmU2ZDY2NDFiMGI0Y2FkM2I5Mzc2ZmEzYTcyN2FlN2Y2NDFiZDE5NjAxMjg1M2IxNDViNzE3OTIxMGU",
18-
"tag": "social"
18+
"altText": "slack icon"
1919
}
2020
]

0 commit comments

Comments
 (0)