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 2026-10-22 14:31:55 -04:00 • committed by GitHub
parent a5cfa98e9a
commit 7ee7b2895c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();