mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
Improve accessibility by adding title to icons
This commit is contained in:
parent
1e7d7dd23a
commit
6c819a3923
@ -1,4 +1,5 @@
|
|||||||
{{ $sprites := resources.Get "icon/feather-sprite.svg" | fingerprint "sha256" }}
|
{{ $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">
|
<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 }}" />
|
<use href="{{ printf "%s#%s" $sprites.Permalink . | relURL }}" />
|
||||||
</svg>
|
</svg>
|
||||||
|
Loading…
Reference in New Issue
Block a user