Skip to content

Commit

Permalink
Documentation Template: Use ARIA roles
Browse files Browse the repository at this point in the history
This fixes the full text functionality of the search.
  • Loading branch information
aandergr committed Jul 31, 2020
1 parent 6c779e8 commit 3823b1e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
{% block content %}
<div class="container-fluid">
<div class="row">
<aside class="instaloaderdoc-sidebar collapse d-md-block col-md-3 col-xl-2 bg-light"
id="instaloaderdocSidebar">
<nav>
<div class="instaloaderdoc-sidebar collapse d-md-block col-md-3 col-xl-2 bg-light"
id="instaloaderdocSidebar">
<nav role="navigation" aria-label="Table of Contents">
<form action="{{ pathto('search') }}" method="get" role="search" class="border-bottom mr-2 pb-2 mb-2 px-1">
<label class="sr-only" for="searchQueryInput">Search</label>
<input type="search" name="q" id="searchQueryInput" class="form-control my-2"
Expand All @@ -74,8 +74,8 @@
<h4>Contents</h4>
{{ toctree(maxdepth=-1) }}
</nav>
</aside>
<main class="col-12 col-md-9 col-xl-10 pt-2">
</div>
<main class="col-12 col-md-9 col-xl-10 pt-2" role="main">
{% block body %}{% endblock %}
</main>
</div>
Expand Down

0 comments on commit 3823b1e

Please sign in to comment.