feat(accessibility): using aria-hidden=true on an icon font that AT should ignore

This commit is contained in:
Dillon 2022-05-05 03:59:57 +08:00
parent 6638064682
commit 885a09304d
No known key found for this signature in database
GPG key ID: 0EF4AE57FB98F108

View file

@ -1,5 +1,5 @@
{{- with .Class -}}
<i class="{{ . }}"></i>
<i class="{{ . }}" aria-hidden="true"></i>
{{- else -}}
{{- $src := .Src -}}
{{- with .Simpleicons -}}
@ -9,5 +9,5 @@
{{- if (urls.Parse $src).Host | not -}}
{{- $src = (resources.Get $src | minify).RelPermalink -}}
{{- end -}}
<i data-svg-src="{{ $src }}"></i>
<i data-svg-src="{{ $src }}" aria-hidden="true"></i>
{{- end -}}