mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
Improve icons accessibility (#127)
This commit is contained in:
committed by
GitHub
parent
b9a232b582
commit
1647f2f112
@@ -9,9 +9,15 @@
|
|||||||
<ul>
|
<ul>
|
||||||
{{ range sort .}}
|
{{ range sort .}}
|
||||||
{{ if .icon }}
|
{{ 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 }}
|
{{ else }}
|
||||||
<li><a href="{{ .url }}">{{ .name }}</a></li>
|
<li>
|
||||||
|
<a href="{{ .url }}" aria-label="{{ .name }}">{{ .name }}</a>
|
||||||
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user