Skip to content

Commit 3cbd4cf

Browse files
committed
Add aria-controls too
More information about the relation of elements on the page
1 parent 4d8bf48 commit 3cbd4cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinx_rtd_theme/versions.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{% if READTHEDOCS %}
22
{# Add rst-badge after rst-versions for small badge style. #}
33
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="{{ _('Versions') }}">
4-
<button class="rst-current-version" data-toggle="rst-current-version">
4+
<button class="rst-current-version" aria-expanded="false" aria-controls="docs_versions" data-toggle="rst-current-version">
55
<span class="fa fa-book"> Read the Docs</span>
66
v: {{ current_version }}
77
<span class="fa fa-caret-down"></span>
88
</button>
9-
<div class="rst-other-versions">
9+
<div class="rst-other-versions" id="docs_versions">
1010
<dl>
1111
<dt>{{ _('Versions') }}</dt>
1212
{% for slug, url in versions %}

0 commit comments

Comments
 (0)