Timothy Jaeryang Baek 9 hours ago
parent
commit
38dfa6e6db
2 changed files with 4 additions and 1 deletions
  1. 3 1
      src/lib/components/ChangelogModal.svelte
  2. 1 0
      src/lib/components/icons/XMark.svelte

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

@@ -39,7 +39,9 @@
 				}}
 				aria-label={$i18n.t('Close')}
 			>
-				<XMark />
+				<XMark>
+					<p class="sr-only">{$i18n.t('Close')}</p>
+				</XMark>
 			</button>
 		</div>
 		<div class="flex items-center mt-1">

+ 1 - 0
src/lib/components/icons/XMark.svelte

@@ -11,6 +11,7 @@
 	stroke-width={strokeWidth}
 	class={className}
 >
+	<slot />
 	<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"
 	/>