The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 16:00 UTC
fix(web): screen readers no longer say "Message" twice entering the composer (#26692)
Co-authored-by: nibarAhmed <nibarahmed0@gmail.com> Co-authored-by: maria-rcks <maria@kuuro.net> Co-authored-by: Julius Marminge <julius0216@outlook.com>
nibarAhmed committed
Nov 14, 2026 at 06:07 UTC
a4723422e7dbb48089db78023fc450d8588a54de
2 files changed
+7
-5
apps/web/src/components/ChatView.tsx
+5
-2
@@ -744,7 +744,6 @@ export default function ChatView(props: ChatViewProps) {
744
] = useState<Record<string, boolean>>({});
745
const legendListRef = useRef<LegendListRef | null>(null);
746
const conversationArea = workspaceAreaProps("conversation", 1, "Conversation");
747
- const composerArea = workspaceAreaProps("composer", 2, "Message input");
747
const [composerOverlayElement, setComposerOverlayElement] = useState<HTMLDivElement | null>(null);
748
const [composerTimelineInset, setComposerTimelineInset] = useState(0);
749
const composerTimelineInsetRef = useRef(0);
@@ -3528,7 +3527,11 @@ export default function ChatView(props: ChatViewProps) {
3527
</div>
3528
3529
<div
3531
- {...composerArea}
3530
+ {...workspaceAreaProps(
3531
+ "composer",
3532
+ 2,
3533
+ showProviderSubagentBar ? "Subagent" : undefined,
3534
+ )}
3535
ref={(overlay: HTMLDivElement | null) => {
3536
setComposerOverlayElement(overlay);
3537
attachFollowComposerOverlay(overlay);
apps/web/src/lib/workspaceFocus.ts
+2
-3
@@ -9,12 +9,11 @@ const FOCUSABLE_SELECTOR =
9
'button:not(:disabled), a[href], input:not(:disabled), textarea:not(:disabled), select:not(:disabled), [contenteditable="true"], [tabindex]';
10
11
/** Props that make an element one stop in the F6 cycle; `order` sets its place in the cycle. */
12
-export function workspaceAreaProps(name: string, order: number, label: string) {
12
+export function workspaceAreaProps(name: string, order: number, label?: string) {
13
return {
14
"data-workspace-area": name,
15
"data-workspace-order": order,
16
- "aria-label": label,
17
- role: "region",
16
+ ...(label ? { "aria-label": label, role: "region" } : {}),
17
tabIndex: -1,
18
} as const;
19
}