mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-29 06:32:52 +00:00
fix(a11y): the folder toggle in the sidebar has a name and says whether the folder is open (#32895)
This commit is contained in:
parent
a5cfa98e9a
commit
7ee7b2895c
1 changed files with 4 additions and 0 deletions
|
|
@ -773,6 +773,10 @@
|
|||
>
|
||||
<button
|
||||
class="text-gray-600 dark:text-gray-400 transition-all p-1 hover:bg-gray-100 dark:hover:bg-gray-900 rounded-lg"
|
||||
aria-label={open
|
||||
? $i18n.t('Collapse {{name}}', { name: folders[folderId]?.name })
|
||||
: $i18n.t('Expand {{name}}', { name: folders[folderId]?.name })}
|
||||
aria-expanded={open}
|
||||
on:click={(e) => {
|
||||
e.stopPropagation();
|
||||
e.stopImmediatePropagation();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue