Improve accessibility by adding title to icons

This commit is contained in:
BBaoVanC 2021-10-08 19:51:03 -05:00
parent 1e7d7dd23a
commit 6c819a3923
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A

View File

@ -1,4 +1,5 @@
{{ $sprites := resources.Get "icon/feather-sprite.svg" | fingerprint "sha256" }}
<svg class="icon" fill="none" stroke="lightgray" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<title>{{ . }} icon</title>
<use href="{{ printf "%s#%s" $sprites.Permalink . | relURL }}" />
</svg>