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

View File

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