Browse Source

add close label to close button in changelog modal, only accessible for screen readers

Sine Jespersen 1 month ago
parent
commit
0889dd3a51
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/lib/components/ChangelogModal.svelte

+ 1 - 0
src/lib/components/ChangelogModal.svelte

@@ -43,6 +43,7 @@
 					fill="currentColor"
 					class="w-5 h-5"
 				>
+					<p class="sr-only">{$i18n.t('Close')}</p>
 					<path
 						d="M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"
 					/>