diff options
author | Dillon <dillonzq@outlook.com> | 2022-05-04 22:59:57 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2022-05-04 22:59:57 +0300 |
commit | 885a09304d55e5026a5f52bcaed147d1cf11d88d (patch) | |
tree | fec4a24eee026e1860d46664b32eb2f745f77451 /layouts | |
parent | 6638064682d59be71a686da6a09fe2337227e0a1 (diff) |
feat(accessibility): using aria-hidden=true on an icon font that AT should ignore
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/plugin/icon.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/plugin/icon.html b/layouts/partials/plugin/icon.html index 5bc2a11f..c5f98db9 100644 --- a/layouts/partials/plugin/icon.html +++ b/layouts/partials/plugin/icon.html @@ -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 -}} |