-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add focusable button for TOC expand toggle
- include HTML template element to set up classes & translated screen reader description - revise DOM position so it is the same visually as the tab order - move in slightly so focus outline is visible - fixes #104
- Loading branch information
Showing
3 changed files
with
40 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
<div class="site-toc"> | ||
<nav class="toc mt-3" aria-label="Main menu"> | ||
<nav class="toc mt-3" aria-label="{{ _('Main menu') }}"> | ||
{{ toctree(includehidden=False, collapse=False, maxdepth=8, titles_only=True) }} | ||
</nav> | ||
<template data-toggle-item-template> | ||
<button class="btn btn-sm btn-link toctree-expand" type="button"> | ||
<span class="sr-only">{{ _('Toggle menu contents') }}</span> | ||
</button> | ||
</template> | ||
</div> |