Skip to content

Commit 19b09ed

Browse files
committed
Improve accessibiity, SEO
Set up standard html (html5) doctype to stop triggering quirks mode. Add viewport, description meta tags to head. Add aria-label to search box as button provides sighted label. Improve footer contrast. Need black forground.
1 parent 8b59016 commit 19b09ed

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

website/www/_static/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ body
9494
{
9595
font-size: small;
9696
text-align: center;
97-
color: lightgrey;
97+
color: black;
9898
}
9999

100100
.footer img {

website/www/_templates/layout.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3-
<html xmlns="http://www.w3.org/1999/xhtml">
1+
<!DOCTYPE html>
2+
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
43
<head>
54
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<meta name="Description"
7+
content="Documentation on the Roundup issue tracker, version {{ release|e }}.">
68
{{ metatags }}
79
{%- if builder != 'htmlhelp' %}
810
{%- set titlesuffix = docstitle|e %}
@@ -68,7 +70,8 @@
6870
{%- if pagename != "search" %}
6971
<div id="searchbox" style="display: none">
7072
<form class="search" action="{{ pathto('search') }}" method="get">
71-
<input type="text" name="q" size="18" />
73+
<input type="text" aria-label="Enter search terms"
74+
name="q" size="18" />
7275
<input type="submit" value="{{ _('Search') }}" />
7376
<input type="hidden" name="check_keywords" value="yes" />
7477
<input type="hidden" name="area" value="default" />

0 commit comments

Comments
 (0)