A lot of small changes improving keyboard navigation, readability and accesibility
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
{{ if default true .Site.Params.BookSearch }}
|
||||
<div class="book-search hidden">
|
||||
<input type="text" id="book-search-input" placeholder="{{ i18n "Search" }}" aria-label="{{ i18n "Search" }}" maxlength="64" data-hotkeys="s/" />
|
||||
<input id="book-search-input" type="text"
|
||||
placeholder="{{ partial "docs/text/i18n" "Search" }}"
|
||||
aria-label="{{ partial "docs/text/i18n" "Search" }}"
|
||||
maxlength="64" data-hotkeys="s/" />
|
||||
<div class="book-search-spinner hidden"></div>
|
||||
<ul id="book-search-results"></ul>
|
||||
</div>
|
||||
<script>document.querySelector(".book-search").classList.remove("hidden")</script>
|
||||
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user