fix(a11y): the folder toggle in the sidebar has a name and says whether the folder is open (#32895)

This commit is contained in:
G30 authored and GitHub committed 2026-10-23 03:31:55 +09:00
1 parent a5cfa98e9a
commit 7ee7b2895c
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();