mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-24 22:37:38 -05: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:
1 file changed
+4
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user