Commit 9788e51b authored by Raniere Silva's avatar Raniere Silva Committed by GitHub
Browse files

Merge pull request #103 from evanwill/accessibility-fix

accessibility fixes.
parents 20ef8e2e 94ef967b
{% comment %} {% comment %}
Find previous and next episodes (if any). Find previous and next episodes (if any).
Including file must pass episode_navbar_title=true or ...=false to display episode title.
{% endcomment %} {% endcomment %}
{% for episode in site.episodes %} {% for episode in site.episodes %}
{% if episode.url == page.url %} {% if episode.url == page.url %}
...@@ -21,9 +20,9 @@ ...@@ -21,9 +20,9 @@
<div class="col-md-1"> <div class="col-md-1">
<h3> <h3>
{% if prev_episode %} {% if prev_episode %}
<a href="{{ page.root }}{{ prev_episode.url }}"><span class="glyphicon glyphicon-menu-left"></span></a> <a href="{{ page.root }}{{ prev_episode.url }}"><span class="glyphicon glyphicon-menu-left" aria-hidden="true"></span><span class="sr-only">previous episode</span></a>
{% else %} {% else %}
<a href="{{ page.root }}/"><span class="glyphicon glyphicon-menu-up"></span></a> <a href="{{ page.root }}/"><span class="glyphicon glyphicon-menu-up" aria-hidden="true"></span><span class="sr-only">lesson home</span></a>
{% endif %} {% endif %}
</h3> </h3>
</div> </div>
...@@ -36,9 +35,9 @@ ...@@ -36,9 +35,9 @@
<div class="col-md-1"> <div class="col-md-1">
<h3> <h3>
{% if next_episode %} {% if next_episode %}
<a href="{{ page.root }}{{ next_episode.url }}"><span class="glyphicon glyphicon-menu-right"></span></a> <a href="{{ page.root }}{{ next_episode.url }}"><span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span><span class="sr-only">next episode</span></a>
{% else %} {% else %}
<a href="{{ page.root }}/"><span class="glyphicon glyphicon-menu-up"></span></a> <a href="{{ page.root }}/"><span class="glyphicon glyphicon-menu-up" aria-hidden="true"></span><span class="sr-only">lesson home</span></a>
{% endif %} {% endif %}
</h3> </h3>
</div> </div>
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
</ul> </ul>
<form class="navbar-form navbar-right" role="search" id="search" onsubmit="google_search(); return false;"> <form class="navbar-form navbar-right" role="search" id="search" onsubmit="google_search(); return false;">
<div class="form-group"> <div class="form-group">
<input type="text" id="google-search" placeholder="Search..."> <input type="text" id="google-search" placeholder="Search..." aria-label="Google site search">
</div> </div>
</form> </form>
</div> </div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment