improve accessability

This commit is contained in:
Vri 🌈 2023-05-17 14:30:00 +02:00
parent 837664f4c5
commit 2be07ae8dd
Signed by: vrifox
GPG key ID: D40098E5B60B2197
2 changed files with 3 additions and 3 deletions

View file

@ -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%;

View file

@ -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 }}