Improve accessability #14

Manually merged
vrifox merged 5 commits from improve-accessability into main 2023-05-17 14:36:30 +02:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 2be07ae8dd - Show all commits

View file

@ -34,7 +34,7 @@
position: relative;
&::before {
content: attr(data-title);
content: attr(aria-label);
left: calc(100% + 0.5rem);
position: absolute;
top: 50%;

View file

@ -21,7 +21,7 @@
</section>
<aside>
<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 id="languages">
{{- if .Site.IsMultiLingual }}
@ -33,7 +33,7 @@
{{ range $siteLanguages }}
{{ if eq $translation.Lang .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 }}