Skip to content

Commit 9f856d4

Browse files
authored
Merge pull request #19299 from dvdksn/lighthouse-improvements
site: accessibility improvements
2 parents b1b6f55 + c1cd9f7 commit 9f856d4

File tree

3 files changed

+29
-12
lines changed

3 files changed

+29
-12
lines changed

layouts/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ <h1 class="text-2xl">Get Docker</h1>
3535
</a>
3636
</div>
3737
<div class="absolute bottom-0 right-0 origin-bottom-right md:scale-50">
38-
<img class="dark:hidden" src="/assets/images/app-wf-light-1.svg" />
39-
<img class="hidden dark:block" src="/assets/images/app-wf-dark-1.svg" />
38+
<img class="dark:hidden" alt="Low-fi desktop app" src="/assets/images/app-wf-light-1.svg" />
39+
<img class="hidden dark:block" alt="Low-fi desktop app" src="/assets/images/app-wf-dark-1.svg" />
4040
</div>
4141
</div>
4242

@@ -127,8 +127,8 @@ <h2 class="font-medium">Getting started</h2>
127127
</div>
128128
</div>
129129
<div class="absolute bottom-0 right-0 origin-bottom-right sm:scale-75">
130-
<img class="dark:hidden" src="/assets/images/app-wf-light-2.svg" />
131-
<img class="hidden dark:block" src="/assets/images/app-wf-dark-2.svg" />
130+
<img class="dark:hidden" alt="Low-fi desktop app" src="/assets/images/app-wf-light-2.svg" />
131+
<img class="hidden dark:block" alt="Low-fi desktop app" src="/assets/images/app-wf-dark-2.svg" />
132132
</div>
133133
</div>
134134
<div class="rounded-[6px] bg-gradient-to-br from-blue-light-400 to-magenta-light-400 dark:from-blue-dark-400 dark:to-magenta-dark-400 p-[2px] drop-shadow">
@@ -152,8 +152,8 @@ <h2 class="font-medium">Featured</h2>
152152
<div class="ml-auto sm:col-start-2">
153153
{{ $dbcLogoWhite := resources.Get "images/build-cloud-white.svg" }}
154154
{{ $dbcLogoLight := resources.Get "images/build-cloud-light.svg" }}
155-
<img class="hidden h-full w-full dark:block" src="{{ $dbcLogoWhite.Permalink }}" />
156-
<img class="h-full w-full dark:hidden" src="{{ $dbcLogoLight.Permalink }}" />
155+
<img class="hidden h-full w-full dark:block" alt="Docker Build Cloud logo" src="{{ $dbcLogoWhite.Permalink }}" />
156+
<img class="h-full w-full dark:hidden" alt="Docker Build Cloud logo" src="{{ $dbcLogoLight.Permalink }}" />
157157
</div>
158158
</div>
159159
</div>

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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="mx-auto flex h-full max-w-[1400px] items-center justify-between">
33
<div class="flex h-full items-center gap-8 md:gap-2">
44
{{ if not .IsHome }}
5-
<button x-data tabindex="4" @click="() => {
5+
<button x-data @click="() => {
66
$store.showSidebar = ! $store.showSidebar;
77
const sidebar = document.querySelector('#sidebar');
88
if ($store.showSidebar) {
@@ -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>
@@ -26,7 +26,7 @@
2626
</div>
2727
<div class="flex items-center gap-6">
2828
<div id="docsearch"></div>
29-
<button id="theme-switch" tabindex="1" class="svg-icon"
29+
<button aria-label="Theme switch" id="theme-switch" class="svg-icon"
3030
x-data="{ theme: localStorage.getItem('theme-preference') }" x-init="$watch('theme', value => {
3131
localStorage.setItem('theme-preference', value);
3232
document.firstElementChild.className = value;

0 commit comments

Comments
 (0)