Browse Source

Merge pull request #15479 from itk-dev/feature/suggestions-role-list

FEAT: give suggestions role list and items role listitem
Tim Jaeryang Baek 3 months ago
parent
commit
6ff84d8ec0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/components/chat/Suggestions.svelte

+ 2 - 1
src/lib/components/chat/Suggestions.svelte

@@ -83,9 +83,10 @@
 
 <div class="h-40 w-full">
 	{#if filteredPrompts.length > 0}
-		<div class="max-h-40 overflow-auto scrollbar-none items-start {className}">
+		<div role="list" class="max-h-40 overflow-auto scrollbar-none items-start {className}">
 			{#each filteredPrompts as prompt, idx (prompt.id || prompt.content)}
 				<button
+					role="listitem"
 					class="waterfall flex flex-col flex-1 shrink-0 w-full justify-between
 				       px-3 py-2 rounded-xl bg-transparent hover:bg-black/5
 				       dark:hover:bg-white/5 transition group"