浏览代码

Merge pull request #16772 from itk-dev/feature/h2-and-section-in-messages

add h2 and section tags to messages
Tim Jaeryang Baek 6 月之前
父节点
当前提交
aa94359f74
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/lib/components/chat/Messages.svelte

+ 3 - 2
src/lib/components/chat/Messages.svelte

@@ -404,7 +404,8 @@
 	{:else}
 		<div class="w-full pt-2">
 			{#key chatId}
-				<div class="w-full">
+				<section class="w-full" aria-labelledby="chat-conversation">
+					<h2 class="sr-only" id="chat-conversation">{$i18n.t('Chat Conversation')}</h2>
 					{#if messages.at(0)?.parentId !== null}
 						<Loader
 							on:visible={(e) => {
@@ -449,7 +450,7 @@
 							{topPadding}
 						/>
 					{/each}
-				</div>
+				</section>
 				<div class="pb-12" />
 				{#if bottomPadding}
 					<div class="  pb-6" />