Skip to content

Commit 723006b

Browse files
committed
a11y: add link titles in header, footer
Signed-off-by: David Karlsson <[email protected]>
1 parent 6cd311a commit 723006b

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

layouts/partials/footer.html

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,51 @@
1515
<div class="flex gap-4">
1616
<a
1717
class="h-8 w-8 rounded-full fill-blue-light dark:fill-blue-dark"
18+
title="X (Twitter)"
1819
href="http://twitter.com/docker/">
1920
{{ (resources.Get "images/TwitterCircle.svg").Content | safe.HTML }}
2021
</a>
2122
<a
2223
class="h-8 w-8 rounded-full fill-blue-light dark:fill-blue-dark"
24+
title="LinkedIn"
2325
href="https://www.linkedin.com/company/docker">
2426
{{ (resources.Get "images/LinkedinCircle.svg").Content | safe.HTML }}
2527
</a>
2628
<a
2729
class="h-8 w-8 rounded-full fill-blue-light dark:fill-blue-dark"
30+
title="Instagram"
2831
href="https://www.instagram.com/dockerinc/">
2932
{{ (resources.Get "images/InstagramCircle.svg").Content | safe.HTML }}
3033
</a>
3134
<a
3235
class="h-8 w-8 rounded-full fill-blue-light dark:fill-blue-dark"
36+
title="YouTube"
3337
href="http://www.youtube.com/user/dockerrun">
3438
{{ (resources.Get "images/YoutubeCircle.svg").Content | safe.HTML }}
3539
</a>
3640
<a
3741
class="h-8 w-8 rounded-full fill-blue-light dark:fill-blue-dark"
42+
title="Facebook"
3843
href="https://www.facebook.com/docker.run">
3944
{{ (resources.Get "images/FacebookCircle.svg").Content | safe.HTML }}
4045
</a>
4146
</div>
4247
<div class="flex items-center gap-4">
43-
<a class="underline-offset-2 hover:underline" href="https://www.docker.com/legal/docker-terms-service">Terms of Service</a>
44-
<a class="underline-offset-2 hover:underline" href="https://www.dockerstatus.com/">Status</a>
45-
<a class="underline-offset-2 hover:underline" href="https://www.docker.com/legal">Legal</a>
48+
<a
49+
class="underline-offset-2 hover:underline"
50+
title="Docker Terms of Service"
51+
href="https://www.docker.com/legal/docker-terms-service"
52+
>Terms of Service</a>
53+
<a
54+
class="underline-offset-2 hover:underline"
55+
title="Docker Systems Status Page"
56+
href="https://www.dockerstatus.com/"
57+
>Status</a>
58+
<a
59+
class="underline-offset-2 hover:underline"
60+
title="Docker Legal Terms"
61+
href="https://www.docker.com/legal"
62+
>Legal</a>
4663
</div>
4764
</div>
4865
</div>

layouts/partials/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{{ end }}
1717
<div>
1818
{{/* main logo */}}
19-
<a href="{{ site.BaseURL }}">
19+
<a title="Docker Docs home page" href="{{ site.BaseURL }}">
2020
<div>
2121
{{- (resources.Get "images/docs-logo-white-full.svg").Content | safe.HTML -}}
2222
</div>

0 commit comments

Comments
 (0)