Skip to content

Commit 90abdb4

Browse files
committed
fix(sidebar): add role=img so lock indicator is announced by AT
1 parent 9892089 commit 90abdb4

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/folder-item/folder-item.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ export function FolderItem({
556556
<div className='relative h-[18px] w-[18px] flex-shrink-0'>
557557
{folder.locked && (
558558
<span
559+
role='img'
559560
aria-label='Folder is locked'
560561
className={clsx(
561562
'pointer-events-none absolute inset-0 flex items-center justify-center transition-opacity',

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/workflow-item/workflow-item.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ export function WorkflowItem({
475475
<div className='relative h-[18px] w-[18px] flex-shrink-0'>
476476
{workflow.locked && (
477477
<span
478+
role='img'
478479
aria-label='Workflow is locked'
479480
className={clsx(
480481
'pointer-events-none absolute inset-0 flex items-center justify-center transition-opacity',

0 commit comments

Comments
 (0)