Improve accessability #14
2 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
content: attr(data-title);
|
content: attr(aria-label);
|
||||||
left: calc(100% + 0.5rem);
|
left: calc(100% + 0.5rem);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
</section>
|
</section>
|
||||||
<aside>
|
<aside>
|
||||||
<section id="social-links">
|
<section id="social-links">
|
||||||
<a class="hint-text" rel="me" href="https://social.anoxinon.de/@vri" data-title="Mastodon">{{ partial "helpers/icons" "mastodon" }}</a>
|
<a class="hint-text" rel="me" href="https://social.anoxinon.de/@vri" aria-label="Mastodon">{{ partial "helpers/icons" "mastodon" }}</a>
|
||||||
</section>
|
</section>
|
||||||
<section id="languages">
|
<section id="languages">
|
||||||
{{- if .Site.IsMultiLingual }}
|
{{- if .Site.IsMultiLingual }}
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
{{ range $siteLanguages }}
|
{{ range $siteLanguages }}
|
||||||
{{ if eq $translation.Lang .Lang }}
|
{{ if eq $translation.Lang .Lang }}
|
||||||
{{ if ne $pageLanguage .Lang }}
|
{{ if ne $pageLanguage .Lang }}
|
||||||
<a class="hint-text" id="language" href="{{ $translation.Permalink }}" data-title="{{ .LanguageName }}">{{ .Params.languageFlag }}</a>
|
<a class="hint-text" id="language" href="{{ $translation.Permalink }}" aria-label="{{ .LanguageName }}">{{ .Params.languageFlag }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue