From 99b23ccfdc08b92ffc267f0bce4c6da07ace2eca Mon Sep 17 00:00:00 2001 From: Ammar Date: Fri, 7 Nov 2025 15:39:38 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=A4=96=20feat:=20add=20aria-labels=20?= =?UTF-8?q?to=20ProjectSidebar=20and=20fix=20path=20text=20cutoff?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add aria-label to project items, workspace lists, and buttons - Add role=region to workspace list containers - Fix vertical text cutoff by changing leading-none to leading-tight - Improves screen reader accessibility throughout the sidebar --- src/components/ProjectSidebar.tsx | 9 ++++++--- src/components/WorkspaceListItem.tsx | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/ProjectSidebar.tsx b/src/components/ProjectSidebar.tsx index 43a8b708b..1314f9eff 100644 --- a/src/components/ProjectSidebar.tsx +++ b/src/components/ProjectSidebar.tsx @@ -37,6 +37,7 @@ type DraggableProjectItemProps = React.PropsWithChildren<{ tabIndex?: number; "aria-expanded"?: boolean; "aria-controls"?: string; + "aria-label"?: string; "data-project-path"?: string; }>; @@ -140,7 +141,7 @@ const ProjectDragLayer: React.FC = () => {
-
+
{dirPath} {basename}
@@ -475,6 +476,7 @@ const ProjectSidebarInner: React.FC = ({ tabIndex={0} aria-expanded={isExpanded} aria-controls={workspaceListId} + aria-label={`${isExpanded ? "Collapse" : "Expand"} project ${projectName}`} data-project-path={projectPath} > = ({
-
+
{(() => { const abbrevPath = abbreviatePath(projectPath); const { dirPath, basename } = splitAbbreviatedPath(abbrevPath); @@ -549,7 +551,7 @@ const ProjectSidebarInner: React.FC = ({ {isExpanded && ( -
+