Site improvements (#4049)

- Add missing ARIA annotations on the See Also entry in the right-hand TOC

- Add missing ARIA annotations on the FAQ pages, and switch from a UL to an OL
list for the questions in order to get rid of the bullets.
This commit is contained in:
Martin Taillefer 2019-04-25 20:49:50 -07:00 committed by GitHub
parent 24d972fd7a
commit 469667b184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -9,11 +9,11 @@
<hr/> <hr/>
<div class="directory" role="directory"> <div class="directory" role="directory">
<nav id="InlineTableOfContents"> <nav id="InlineTableOfContents">
<ul> <ol>
{{ range $q := $sorted_questions }} {{ range $q := $sorted_questions }}
<li><a href="#{{ $q.File.BaseFileName | urlize }}">{{ $q.Title }}</a></li> <li role="none" aria-label="{{ $q.Title }}"><a href="#{{ $q.File.BaseFileName | urlize }}">{{ $q.Title }}</a></li>
{{ end }} {{ end }}
</ul> </ol>
</nav> </nav>
</div> </div>
<hr/> <hr/>

View File

@ -55,7 +55,7 @@
{{ if $page.Scratch.Get "seeAlso" }} {{ if $page.Scratch.Get "seeAlso" }}
{{ with $related }} {{ with $related }}
<li><a href="#see-also">{{ i18n "see_also" }}</a></li> <li role="none" aria-label="{{ i18n "see_also" }}"><a href="#see-also">{{ i18n "see_also" }}</a></li>
{{ end }} {{ end }}
{{ end }} {{ end }}
</ol> </ol>