Improve icons accessibility (#127)
This commit is contained in:
parent
b9a232b582
commit
1647f2f112
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue