Browse Source

aria hidden on svgs to hide them from assistive tech

Sine Jespersen 2 months ago
parent
commit
3494fa8707
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/lib/components/common/Banner.svelte

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

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