From b831d8c068e4f7950e757814bb3b0ee34b7cbb58 Mon Sep 17 00:00:00 2001 From: Henry Heino <46334387+personalizedrefrigerator@users.noreply.github.com> Date: Tue, 4 Mar 2025 03:57:11 -0800 Subject: [PATCH] Desktop: Accessibility: Improve "toggle all notebooks" accessibility (#11918) --- .../app-desktop/gui/Sidebar/hooks/useOnRenderListWrapper.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/app-desktop/gui/Sidebar/hooks/useOnRenderListWrapper.tsx b/packages/app-desktop/gui/Sidebar/hooks/useOnRenderListWrapper.tsx index 5dc05a0ca6..224c646271 100644 --- a/packages/app-desktop/gui/Sidebar/hooks/useOnRenderListWrapper.tsx +++ b/packages/app-desktop/gui/Sidebar/hooks/useOnRenderListWrapper.tsx @@ -22,13 +22,14 @@ interface CollapseExpandAllButtonProps { } const CollapseExpandAllButton = (props: CollapseExpandAllButtonProps) => { - // To allow it to be accessed by accessibility tools, the new folder button + // To allow it to be accessed by accessibility tools, the toggle button // is not included in the portion of the list with role='tree'. const icon = props.allFoldersCollapsed ? 'far fa-caret-square-right' : 'far fa-caret-square-down'; + const label = props.allFoldersCollapsed ? _('Expand all notebooks') : _('Collapse all notebooks'); return