Skip to content

Commit 3ed4b74

Browse files
authored
Merge pull request #1559 from bl-aire/accessibility
Improve BinderHub page Accessibility
2 parents ea7b3c9 + af97bce commit 3ed4b74

File tree

3 files changed

+23
-14
lines changed

3 files changed

+23
-14
lines changed

binderhub/static/index.css

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ p > a:hover {
7777
}
7878

7979
.btn-submit{
80-
background-color:rgb(243, 162, 83);
80+
background-color:rgb(223, 132, 41);
8181
box-shadow: 1px 1px rgba(0,0,0,.075);
8282
color:white;
8383
border:none;
@@ -236,18 +236,27 @@ h4 {
236236
}
237237

238238
.point-orange {
239-
border-color: rgb(243, 162, 83);
240-
color: rgb(243, 162, 83);
239+
border-color: rgb(247, 144, 42);
240+
color: rgb(247, 144, 42);
241241
}
242242

243243
.point-red {
244-
border-color: rgb(208, 102, 129);
245-
color: rgb(208, 102, 129);
244+
border-color: rgb(204, 67, 101);
245+
color: rgb(204, 67, 101);
246246
}
247247

248248
.point-blue {
249-
border-color: rgb(87, 154, 202);
250-
color: rgb(87, 154, 202);
249+
border-color: rgb(41, 124, 184);
250+
color: rgb(41, 124, 184);
251+
}
252+
253+
/*reduce font size of h1 and h2 so the initial design when h3 and h4 tags were used respectively is retained*/
254+
h1{
255+
font-size:1.25em;
256+
}
257+
258+
h2{
259+
font-size:1.125em;
251260
}
252261

253262
span.front-em {

binderhub/templates/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
<div class="col-lg-10 col-lg-offset-1">
1414
{% block header %}
1515
<div id="header" class="text-center">
16-
<h3>Turn a Git repo into a collection of interactive notebooks</h3>
16+
<h1>Turn a Git repo into a collection of interactive notebooks</h1>
1717
<div id="explanation">
1818
Have a repository full of Jupyter notebooks? With Binder, open those notebooks in an executable environment, making your code immediately reproducible by anyone, anywhere.
1919
</div>
2020
</div>
2121
<div id="tutorials" class="text-center">
22-
<h4>New to Binder? Get started with a <a href="https://the-turing-way.netlify.app/communication/binder/zero-to-binder.html" target="_blank">Zero-to-Binder tutorial</a> in Julia, Python, or R.</h4>
22+
<h2>New to Binder? Get started with a <a href="https://the-turing-way.netlify.app/communication/binder/zero-to-binder.html" target="_blank">Zero-to-Binder tutorial</a> in Julia, Python, or R.</h2>
2323
</div>
2424
{% endblock header %}
2525

@@ -99,15 +99,15 @@ <h4 id="form-header" class='row'>Build and launch a repository</h4>
9999

100100
<div class="badges row">
101101
<div class="dropdownmenu" id="toggle-badge-snippet">
102-
<label>Expand to see the text below, paste it into your README to show a binder badge: <img id="badge" src="{{static_url("images/badge_logo.svg")}}"></label>
102+
<label>Expand to see the text below, paste it into your README to show a binder badge: <img id="badge" src="{{static_url("images/badge_logo.svg")}}" alt="Binder badge logo"></label>
103103
<a id="badge-link"></a>
104104
<a href="#" title="show badge snippets"><span id="badge-snippet-caret" class="glyphicon glyphicon-triangle-right"></span></a>
105105
</div>
106106
<div id="badge-snippets" class="hidden">
107107
<!--Markdown section-->
108108
<div class="badge-snippet-row">
109109
<pre id="markdown-badge-snippet" data-default="Fill in the fields to see the markdown badge snippet."></pre>
110-
<img class="icon" src="{{static_url("images/markdown-icon.svg")}}">
110+
<img class="icon" src="{{static_url("images/markdown-icon.svg")}}" alt="Markdown icon">
111111
<img class="icon clipboard"
112112
src="{{static_url("images/copy-icon-black.svg")}}"
113113
data-clipboard-target="#markdown-badge-snippet"
@@ -116,7 +116,7 @@ <h4 id="form-header" class='row'>Build and launch a repository</h4>
116116
<!--RST section-->
117117
<div class="badge-snippet-row">
118118
<pre id="rst-badge-snippet" data-default="Fill in the fields to see the rST badge snippet."></pre>
119-
<img class="icon" src="{{static_url("images/rst-icon.svg")}}">
119+
<img class="icon" src="{{static_url("images/rst-icon.svg")}}" alt="restructured text icon">
120120
<img class="icon clipboard" src="{{static_url("images/copy-icon-black.svg")}}"
121121
data-clipboard-target="#rst-badge-snippet"
122122
alt="Copy rst link to clipboard">

binderhub/templates/page.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
44
<title>{% block title %}Binder{% endblock %}</title>
55
{% block meta_social %}
@@ -30,7 +30,7 @@
3030
<div class="container">
3131
<div class="row">
3232
<div id="logo-container">
33-
<img id="logo" src={% block logo_image %}"{{static_url("logo.svg")}}"{% endblock logo_image %} width="390px" />
33+
<img id="logo" src={% block logo_image %}"{{static_url("logo.svg")}}"{% endblock logo_image %} width="390px" alt="Binder logo" />
3434
</div>
3535
</div>
3636
</div>

0 commit comments

Comments
 (0)