mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-30 06:43:48 +00:00
fix(a11y): the search window's list is named by its visible caption (#32944)
This commit is contained in:
parent
7fe27647d4
commit
0a5c105ab0
1 changed files with 4 additions and 3 deletions
|
|
@ -415,8 +415,9 @@
|
|||
<div
|
||||
class="flex h-6 shrink-0 items-center justify-between px-2 text-[0.6875rem] text-gray-500 dark:text-gray-400"
|
||||
>
|
||||
<span>{$i18n.t(query.trim() ? 'Results' : 'Pinned & recent')}</span><span
|
||||
aria-live="polite"
|
||||
<span id="workspace-search-results-label"
|
||||
>{$i18n.t(query.trim() ? 'Results' : 'Pinned & recent')}</span
|
||||
><span aria-live="polite"
|
||||
>{loading
|
||||
? $i18n.t('Searching…')
|
||||
: results.length
|
||||
|
|
@ -428,7 +429,7 @@
|
|||
bind:this={list}
|
||||
id="workspace-search-results"
|
||||
role="listbox"
|
||||
aria-label={$i18n.t('Search results')}
|
||||
aria-labelledby="workspace-search-results-label"
|
||||
tabindex="-1"
|
||||
class="outline-hidden"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue