Skip to content

Commit e6fde83

Browse files
committed
fix(sidebar): add aria-label to collapsed menu trigger buttons
1 parent c9f838a commit e6fde83

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/collapsed-sidebar-menu/collapsed-sidebar-menu.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ interface CollapsedSidebarMenuProps {
1818
icon: React.ReactNode
1919
hover: ReturnType<typeof useHoverMenu>
2020
onClick?: () => void
21+
ariaLabel?: string
2122
children: React.ReactNode
2223
className?: string
2324
}
@@ -26,6 +27,7 @@ export function CollapsedSidebarMenu({
2627
icon,
2728
hover,
2829
onClick,
30+
ariaLabel,
2931
children,
3032
className,
3133
}: CollapsedSidebarMenuProps) {
@@ -43,6 +45,7 @@ export function CollapsedSidebarMenu({
4345
<DropdownMenuTrigger asChild>
4446
<button
4547
type='button'
48+
aria-label={ariaLabel}
4649
className='mx-[2px] flex h-[30px] items-center rounded-[8px] px-[8px] hover:bg-[var(--surface-active)]'
4750
onClick={onClick}
4851
>

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/sidebar.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,7 @@ export const Sidebar = memo(function Sidebar() {
10801080
}
10811081
hover={tasksHover}
10821082
onClick={() => router.push(`/workspace/${workspaceId}/home`)}
1083+
ariaLabel='Tasks'
10831084
>
10841085
{tasksLoading ? (
10851086
<DropdownMenuItem disabled>
@@ -1201,6 +1202,7 @@ export const Sidebar = memo(function Sidebar() {
12011202
}
12021203
hover={workflowsHover}
12031204
onClick={handleCreateWorkflow}
1205+
ariaLabel='Workflows'
12041206
className='mt-[14px]'
12051207
>
12061208
{workflowsLoading && regularWorkflows.length === 0 ? (

0 commit comments

Comments
 (0)