From 5d6bef683fe79f51d9c7e839cb9f4c451e52a9ee Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Sat, 24 Oct 2026 16:04:25 -0400 Subject: [PATCH] fix(a11y): screen readers announce the suggested prompts on a new chat as buttons (#33094) --- src/lib/components/chat/Suggestions.svelte | 66 +++++++++++----------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/src/lib/components/chat/Suggestions.svelte b/src/lib/components/chat/Suggestions.svelte index 1d58d5b337..b3afa53b37 100644 --- a/src/lib/components/chat/Suggestions.svelte +++ b/src/lib/components/chat/Suggestions.svelte @@ -90,41 +90,41 @@ class="max-h-36 overflow-auto scrollbar-none items-start {className}" > {#each filteredPrompts as prompt, idx (prompt.id || `${prompt.content}-${idx}`)} - - + style="animation-delay: {idx * 45}ms" + on:click={() => onSelect({ type: 'prompt', data: prompt.content })} + > +
+ {#if prompt.title && prompt.title[0] !== ''} +
+ {prompt.title[0]} +
+
+ {prompt.title[1]} +
+ {:else} +
+ {prompt.content} +
+
+ {$i18n.t('Prompt')} +
+ {/if} +
+ + {/each} {/if}