浏览代码

aria hidden on svgs to hide them from assistive tech

Sine Jespersen 2 月之前
父节点
当前提交
3494fa8707
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/lib/components/common/Banner.svelte

+ 2 - 0
src/lib/components/common/Banner.svelte

@@ -81,6 +81,7 @@
 							>
 								<!--  -->
 								<svg
+									aria-hidden="true"
 									xmlns="http://www.w3.org/2000/svg"
 									viewBox="0 0 16 16"
 									fill="currentColor"
@@ -114,6 +115,7 @@
 					<div class=" ml-1 text-gray-400 group-hover:text-gray-600 dark:group-hover:text-white">
 						<!--  -->
 						<svg
+							aria-hidden="true"
 							xmlns="http://www.w3.org/2000/svg"
 							viewBox="0 0 16 16"
 							fill="currentColor"