mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 02:46:16 +01:00
feat(accessibility): using aria-hidden=true on an icon font that AT should ignore
This commit is contained in:
parent
6638064682
commit
885a09304d
1 changed files with 2 additions and 2 deletions
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in a new issue