Skip to content

Commit 6e4c577

Browse files
Some quick accessibility wins
1 parent 4d43c3f commit 6e4c577

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

jekyll-assets/_layouts/boxes.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
<div class="toptitle">
1010
<h1><a href="/documentation/"><b>Raspberry Pi</b> Documentation</a></h1>
1111
<div id="search-container">
12-
<div id="docsearch"></div>
12+
<div id="docsearch" role="search"></div>
1313
</div>
1414
{% include tabs.html %}
1515
</div>
1616

17-
<div id="container">
17+
<div id="container" role="main">
1818
<section id="box-content">
1919
{% for item in site.data.index.tabs %}
2020
{% if page.dir == item.path or page.dir == "/" and item.default_tab and item.default_tab == "yes" %}

jekyll-assets/_layouts/docs.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ <h1 id="docs-header-title">
2020
<div class="mobile-menu-toggle-inner"></div>
2121
</label>
2222
</div>
23-
<div id="docsearch">
23+
<div id="docsearch" role="search">
2424
</div>
2525
</div>
26-
<div class="toc">
26+
<div class="toc" role="navigation">
2727
{% for subdir in site.data.nav %}
2828
<ul class="sectlevel1">
2929
<input class="toc-toggle-box" type="checkbox" id="{{ subdir.path }}" {% if page.url contains subdir.path %}checked{% endif %} />
@@ -154,14 +154,14 @@ <h1 id="docs-header-title">
154154
</div>
155155
<div id="docs-container">
156156
<div id="main-window">
157-
<section id="content">
157+
<section id="content" role="main">
158158
<h1>{{ page.sub_title | markdownify | remove: '<p>' | remove: '</p>'}}</h1>
159159
{{ content }}
160160
</section>
161161

162162
<div id="on-this-page">
163163
<div id="on-this-page-inner">
164-
<h5>On this page</h5>
164+
<h4>On this page</h4>
165165
<div id="tocbot" class="js-toc"></div>
166166
</div>
167167
</div>

jekyll-assets/css/style.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
--accent: #cd2355;
1616
--docsearch-primary-color: var(--accent);
1717
--docsearch-logo-color: var(--red-tint);
18+
--docsearch-muted-color: #333;
1819
--copy-button-bg: #f6f6f6;
1920
--copy-button-text: #444;
2021
--textcolor: black;
@@ -56,6 +57,7 @@
5657
--accent: #d75a64;
5758
--docsearch-primary-color: var(--accent);
5859
--docsearch-logo-color: var(--red-tint);
60+
--docsearch-muted-color: #333;
5961
--copy-button-bg: #707070;
6062
--copy-button-text: #CCC;
6163
--textcolor: white;
@@ -754,7 +756,7 @@ h6 .anchor::before {
754756

755757
#content p {
756758
font-size: 0.95em;
757-
font-weight: 300;
759+
font-weight: 400;
758760
line-height: 1.5em;
759761
margin-bottom: 15px;
760762
}
@@ -926,7 +928,7 @@ span.mlabel {
926928
}
927929

928930
#content td.content {
929-
font-weight: 300;
931+
font-weight: 400;
930932
}
931933

932934
#content p > code,
@@ -954,7 +956,7 @@ td div.listingblock div.content code {
954956
div.imageblock div.title {
955957
color: var(--subtle-text);
956958
font-style: italic;
957-
font-weight: 300;
959+
font-weight: 400;
958960
font-size: 0.8em;
959961
margin-top: -15px;
960962
margin-bottom: 30px;
@@ -1212,7 +1214,7 @@ div.memitem {
12121214

12131215
table.params,
12141216
p.returns {
1215-
font-weight: 300;
1217+
font-weight: 400;
12161218
}
12171219

12181220
table.params td {

0 commit comments

Comments
 (0)