mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-26 23:29:24 -05:00
fix(a11y): the Suggested label on a new chat is a heading that names the suggestion list (#32891)
This commit is contained in:
1 file changed
+6
-2
@@ -65,7 +65,7 @@
|
||||
<div class="mb-1 flex gap-1 text-xs font-normal items-center text-gray-600 dark:text-gray-400">
|
||||
{#if filteredPrompts.length > 0}
|
||||
<Bolt />
|
||||
{$i18n.t('Suggested')}
|
||||
<h3 id="suggestions-heading">{$i18n.t('Suggested')}</h3>
|
||||
{:else}
|
||||
<!-- Keine Vorschläge -->
|
||||
|
||||
@@ -84,7 +84,11 @@
|
||||
|
||||
<div class="h-36 w-full">
|
||||
{#if filteredPrompts.length > 0}
|
||||
<div role="list" class="max-h-36 overflow-auto scrollbar-none items-start {className}">
|
||||
<div
|
||||
role="list"
|
||||
aria-labelledby="suggestions-heading"
|
||||
class="max-h-36 overflow-auto scrollbar-none items-start {className}"
|
||||
>
|
||||
{#each filteredPrompts as prompt, idx (prompt.id || `${prompt.content}-${idx}`)}
|
||||
<!-- svelte-ignore a11y-no-interactive-element-to-noninteractive-role -->
|
||||
<button
|
||||
|
||||
Reference in new issue
Block a user