Skip to content

Commit 675a0d1

Browse files
refactor(web): clarify the draft heading accessibility constraint
1 parent 6d49697 commit 675a0d1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,7 @@ export function DraftHeroHeadline({
341341

342342
return (
343343
<div className="mx-auto flex w-full max-w-5xl flex-col items-center">
344-
{/* No aria-label on the h1: NVDA's browse mode renders a heading's
345-
explicit label in place of its children, which would hide the inline
346-
project picker. */}
344+
{/* An explicit heading label hides the inline project picker in NVDA browse mode. */}
347345
<h1 className="w-full text-center font-normal text-2xl text-foreground tracking-tight sm:text-3xl">
348346
{isScratchDraft ? (
349347
<>What should we work on?</>

0 commit comments

Comments
 (0)