Improve icons accessibility (#127)

This commit is contained in:
Luiz F. A. de Prá 2018-12-20 14:21:11 -02:00 committed by GitHub
parent b9a232b582
commit 1647f2f112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -9,9 +9,15 @@
<ul>
{{ range sort .}}
{{ if .icon }}
<li><a href="{{ .url }}"><i class="{{ .icon }}"></i></a></li>
<li>
<a href="{{ .url }}" aria-label="{{ .name }}">
<i class="{{ .icon }}" aria-hidden></i>
</a>
</li>
{{ else }}
<li><a href="{{ .url }}">{{ .name }}</a></li>
<li>
<a href="{{ .url }}" aria-label="{{ .name }}">{{ .name }}</a>
</li>
{{ end }}
{{ end }}
</ul>