Skip to content

Commit cdfe43a

Browse files
committed
Add accessible names to social icon links
1 parent 4686e0c commit cdfe43a

3 files changed

Lines changed: 21 additions & 20 deletions

File tree

‎frontend/main/src/layout/Footer.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export default function Footer({
102102
target="_blank"
103103
rel="noreferrer noopener"
104104
className={`social-links`}
105+
aria-label={sl.type}
105106
>
106107
{socialLinkPicker(sl)}
107108
</a>

‎frontend/main/src/models/site.model.ts‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ export interface SocialLink {
1515
}
1616

1717
export enum SocialType {
18-
mail = 'mail',
19-
facebook = 'facebook',
20-
github = 'github',
21-
linkedin = 'linkedin',
22-
medium = 'medium',
23-
twitter = 'twitter',
24-
youtube = 'youtube',
25-
mastodon = 'mastodon',
26-
twitch = 'twitch',
27-
instagram = 'instagram',
28-
dribbble = 'dribbble',
29-
stackoverflow = 'stackoverflow',
30-
gitlab = 'gitlab',
31-
behance = 'behance',
18+
mail = 'Mail',
19+
facebook = 'Facebook',
20+
github = 'GitHub',
21+
linkedin = 'LinkedIn',
22+
medium = 'Medium',
23+
twitter = 'Twitter',
24+
youtube = 'Youtube',
25+
mastodon = 'Mastodon',
26+
twitch = 'Twitch',
27+
instagram = 'Instagram',
28+
dribbble = 'Dribbble',
29+
stackoverflow = 'Stack Overflow',
30+
gitlab = 'GitLab',
31+
behance = 'Behance',
3232
}

‎frontend/main/src/services/notion.server.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,27 +1019,27 @@ export const getSite = () => {
10191019
socialLinks: [
10201020
{
10211021
href: 'https://www.facebook.com/groups/codingcatdev',
1022-
type: 'facebook',
1022+
type: 'Facebook',
10231023
},
10241024
{
10251025
href: 'https://github.com/CodingCatDev',
1026-
type: 'github',
1026+
type: 'GitHub',
10271027
},
10281028
{
10291029
href: 'https://www.linkedin.com/company/codingcatdev/',
1030-
type: 'linkedin',
1030+
type: 'LinkedIn',
10311031
},
10321032
{
10331033
href: 'https://medium.com/codingcatdev',
1034-
type: 'medium',
1034+
type: 'Medium',
10351035
},
10361036
{
10371037
href: 'https://twitter.com/CodingCatDev',
1038-
type: 'twitter',
1038+
type: 'Twitter',
10391039
},
10401040
{
10411041
href: 'http://youtube.com/c/codingcatdev',
1042-
type: 'youtube',
1042+
type: 'YouTube',
10431043
},
10441044
],
10451045
id: 'none',

0 commit comments

Comments
 (0)