summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-04-06 16:31:31 +0200
committerMartin Fischer <martin@push-f.com>2025-04-13 14:34:33 +0200
commitfd71348532c828cab5af267842c8accf1f8528b5 (patch)
treeaad9c74fa78fbd1609cb7caa11a74dba8f20d37f
parent2abd6aa932530b557b7c072e9dfe055cf12cf510 (diff)
fix: add missing alt texts and aria-label
-rw-r--r--views/index.html2
-rw-r--r--views/search.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/views/index.html b/views/index.html
index 0c1b66c..3d8c04f 100644
--- a/views/index.html
+++ b/views/index.html
@@ -6,7 +6,7 @@
<link rel="stylesheet" href="/assets/style.css" />
</head>
<body>
- <img height=140 class=logo src="/assets/logo.svg">
+ <img alt="lex.surf" height=140 class=logo src="/assets/logo.svg">
<h2>The portal to&nbsp;national&nbsp;law.</h2>
<div class=countries>
{{range $key, $c := .Countries -}}
diff --git a/views/search.html b/views/search.html
index 9373375..70c8c86 100644
--- a/views/search.html
+++ b/views/search.html
@@ -6,7 +6,7 @@
<link rel="stylesheet" href="//{{.Domain}}/assets/style.css" />
</head>
<body>
- <a href="//{{.Domain}}"><img height=140 class=logo src="//{{.Domain}}/assets/logo.svg"></a>
+ <a href="//{{.Domain}}"><img alt="lex.surf" height=140 class=logo src="//{{.Domain}}/assets/logo.svg"></a>
<h1>National Law of {{.Country.Name}}</h1>
{{if not .Country.HasPlaceholder}}
<p><big><a href="{{.Country.SearchURL}}">{{.Country.SearchURL}}</a></big></p>
@@ -19,7 +19,7 @@
<form>
{{end}}
{{if or .Country.HasPlaceholder .HasJSONLaws}}
- <input id=search name=q autocomplete="off" autofocus {{if .HasJSONLaws}}data-json{{end}}>
+ <input id=search name=q aria-label="Search" autocomplete="off" autofocus {{if .HasJSONLaws}}data-json{{end}}>
<ul id=suggestions></ul>
{{end}}
{{if .Country.HasPlaceholder}}