Skip to content

Commit 8ac282a

Browse files
Merge pull request #4206 from raspberrypi/accessibility-tweaks
Accessibility tweaks
2 parents 81eebfd + 93c3553 commit 8ac282a

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
<div id="toc-container">
1212
<div id="toc-inner">
1313
<div id="docs-header">
14-
<h1 id="docs-header-title">
14+
<h2 id="docs-header-title">
1515
<a href="/documentation">
1616
Documentation
1717
</a>
18-
</h1>
18+
</h2>
1919
<label class="mobile-menu-toggle" for="mobile-toggle">
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: 10 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;
@@ -182,6 +184,10 @@ div.subtitle p {
182184
background-color: var(--toc-hover-colour);
183185
}
184186

187+
#docs-header h2 {
188+
font-size: initial;
189+
}
190+
185191
#docs-header a {
186192
font-size: 1.9em;
187193
font-weight: 400;
@@ -754,7 +760,7 @@ h6 .anchor::before {
754760

755761
#content p {
756762
font-size: 0.95em;
757-
font-weight: 300;
763+
font-weight: 400;
758764
line-height: 1.5em;
759765
margin-bottom: 15px;
760766
}
@@ -926,7 +932,7 @@ span.mlabel {
926932
}
927933

928934
#content td.content {
929-
font-weight: 300;
935+
font-weight: 400;
930936
}
931937

932938
#content p > code,
@@ -954,7 +960,7 @@ td div.listingblock div.content code {
954960
div.imageblock div.title {
955961
color: var(--subtle-text);
956962
font-style: italic;
957-
font-weight: 300;
963+
font-weight: 400;
958964
font-size: 0.8em;
959965
margin-top: -15px;
960966
margin-bottom: 30px;
@@ -1212,7 +1218,7 @@ div.memitem {
12121218

12131219
table.params,
12141220
p.returns {
1215-
font-weight: 300;
1221+
font-weight: 400;
12161222
}
12171223

12181224
table.params td {

0 commit comments

Comments
 (0)