Skip to content

Commit a9648e1

Browse files
committed
a11y fixes
1 parent 987c36e commit a9648e1

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

components/molecules/NavBar.vue

+12-13
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,27 @@
1414

1515
<!-- Social icons -->
1616
<ul class="flex space-x-3 text-gray-500 transition socials">
17-
<li
18-
v-if="appConfig.socials?.twitter"
19-
title="Twitter">
20-
<a :href="`https://twitter.com/${appConfig.socials?.twitter}`" target="_blank">
17+
<li v-if="appConfig.socials?.twitter">
18+
<a title="Twitter" :href="`https://twitter.com/${appConfig.socials?.twitter}`" target="_blank">
19+
<span class="sr-only" aria-hidden="true">Twitter link</span>
2120
<Icon name="fa-brands:twitter" class="w-5 h-5" />
2221
</a>
2322
</li>
24-
<li
25-
v-if="appConfig.socials?.github"
26-
title="GitHub">
27-
<a :href="`https://github.com/${appConfig.socials?.github}`" target="_blank">
23+
<li v-if="appConfig.socials?.github">
24+
<a title="GitHub" :href="`https://github.com/${appConfig.socials?.github}`" target="_blank">
25+
<span class="sr-only" aria-hidden="true">Github link</span>
2826
<Icon name="fa-brands:github" class="w-5 h-5" />
2927
</a>
3028
</li>
31-
<li
32-
v-if="appConfig.socials?.youtube"
33-
title="YouTube">
34-
<a :href="`https://youtube.com/${appConfig.socials?.youtube}`" target="_blank">
29+
<li v-if="appConfig.socials?.youtube">
30+
<a title="YouTube" :href="`https://youtube.com/${appConfig.socials?.youtube}`" target="_blank">
31+
<span class="sr-only" aria-hidden="true">Youtube link</span>
3532
<Icon name="fa-brands:youtube" class="w-5 h-5" />
3633
</a>
3734
</li>
38-
<ColorModeSwitch class="dark:text-gray-100 hover:text-gray-700 dark:hover:text-gray-300" />
35+
<li>
36+
<ColorModeSwitch class="dark:text-gray-100 hover:text-gray-700 dark:hover:text-gray-300" />
37+
</li>
3938
</ul>
4039
</nav>
4140
</template>

0 commit comments

Comments
 (0)