add h2 and section tags to messages

This commit is contained in:
Sine Jespersen 2025-08-21 10:34:46 +02:00
parent 1a15a62b73
commit 48f0992300

View file

@ -404,7 +404,8 @@
{:else} {:else}
<div class="w-full pt-2"> <div class="w-full pt-2">
{#key chatId} {#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} {#if messages.at(0)?.parentId !== null}
<Loader <Loader
on:visible={(e) => { on:visible={(e) => {
@ -449,7 +450,7 @@
{topPadding} {topPadding}
/> />
{/each} {/each}
</div> </section>
<div class="pb-12" /> <div class="pb-12" />
{#if bottomPadding} {#if bottomPadding}
<div class=" pb-6" /> <div class=" pb-6" />