Improve accessibility score

This commit is contained in:
Alex Shpak 2019-11-16 22:00:50 +01:00
parent f1d4aeb69a
commit 20c3faae4d
6 changed files with 10 additions and 5 deletions

View file

@ -3,6 +3,7 @@
font-family: 'Roboto';
font-style: italic;
font-weight: 300;
font-display: swap;
src: local('Roboto Light Italic'), local('Roboto-LightItalic'),
url('fonts/roboto-v19-latin-300italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('fonts/roboto-v19-latin-300italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
@ -12,6 +13,7 @@
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Roboto'), local('Roboto-Regular'),
url('fonts/roboto-v19-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('fonts/roboto-v19-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
@ -21,6 +23,7 @@
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
font-display: swap;
src: local('Roboto Bold'), local('Roboto-Bold'),
url('fonts/roboto-v19-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('fonts/roboto-v19-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
@ -31,6 +34,7 @@
font-family: 'Roboto Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Roboto Mono'), local('RobotoMono-Regular'),
url('fonts/roboto-mono-v6-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('fonts/roboto-mono-v6-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */

View file

@ -1 +1 @@
{"Target":"book.min.9655dddcbdb7746824f6a5a12c435a2fd6b9c5d6d7928958bf434d9563068728.css","MediaType":"text/css","Data":{"Integrity":"sha256-llXd3L23dGgk9qWhLENaL9a5xdbXkolYv0NNlWMGhyg="}}
{"Target":"book.min.1a42267725101834ce35443da3d9bbdee3c08b2ff6555b390bf2963b2dcda169.css","MediaType":"text/css","Data":{"Integrity":"sha256-GkImdyUQGDTONUQ9o9m73uPAiy/2VVs5C/KWOy3NoWk="}}

View file

@ -1,5 +1,6 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ partial "docs/title" . }}">
{{- template "_internal/opengraph.html" . -}}
<title>{{ partial "docs/title" . }} | {{ .Site.Title -}}</title>

View file

@ -11,7 +11,7 @@
<ul>
<li class="flex">
<img src="{{ "svg/translate.svg" | relURL }}" />
<img src="{{ "svg/translate.svg" | relURL }}" alt="Languages" />
{{ $.Site.Language.LanguageName }}
</li>
</ul>
@ -20,7 +20,7 @@
{{ range sort $langs }}
<li class="{{ if (eq $.Site.Language .Language ) }}active{{ end }}">
<a href="{{ .Permalink }}" class="flex">
<img src="{{ "svg/translate.svg" | relURL }}" />
<img src="{{ "svg/translate.svg" | relURL }}" alt="Languages" />
{{ .Language.LanguageName }}
</a>
</li>

View file

@ -1,6 +1,6 @@
{{ if default true .Site.Params.BookSearch }}
<div class="book-search">
<input type="text" placeholder="{{ i18n "Search" }}" id="book-search-input" maxlength="64" />
<input type="text" id="book-search-input" placeholder="{{ i18n "Search" }}" aria-label="{{ i18n "Search" }}" maxlength="64" />
<div class="book-search-spinner spinner hidden"></div>
<ul id="book-search-results"></ul>
</div>