Skip to content

Commit ba1b5dc

Browse files
committed
fix(web): name the task drawer scroll region
1 parent 61c139f commit ba1b5dc

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/web/src/components/chat/ComposerTasksBadge.test.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ describe("ComposerTasksBadge", () => {
9999
expect(markup).not.toContain("data-variant");
100100
expect(markup).toContain('aria-expanded="true"');
101101
expect(markup).toContain('aria-label="Collapse tasks. 1 of 3 complete."');
102+
expect(markup).toContain('aria-label="Task list. 1 of 3 complete."');
102103
expect(markup).toContain('role="list"');
103104
expect(markup).toContain('data-composer-tasks-list="true"');
104105
expect(markup).toContain('tabindex="0"');

‎apps/web/src/components/chat/ComposerTasksBadge.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ export const ComposerTasksDrawer = memo(function ComposerTasksDrawer({
203203
</Button>
204204
</div>
205205
<div
206+
aria-label={`Task list. ${progress.completedSteps} of ${progress.totalSteps} complete.`}
206207
className="max-h-[min(24rem,40dvh)] space-y-px overflow-y-auto overscroll-contain px-3 pb-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70 sm:px-4"
207208
data-composer-tasks-list="true"
208209
role="list"

0 commit comments

Comments
 (0)