From 014eb106622d926e4592bfce4e4f6562e002b652 Mon Sep 17 00:00:00 2001 From: Daniel Lew Date: Wed, 19 Nov 2025 16:10:10 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A2=20fix:=20Resolved=20Screen=20Reade?= =?UTF-8?q?r=20Issues=20with=20`TooltipAnchor`=20(#10580)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TooltipAnchor was automatically adding an `aria-describedby` tag which often duplicated the labeling already present inside of the anchor. E.g., the screen reader might say "New Chat, New Chat, button" instead of just "New Chat, button." I've removed the TooltipAnchor's automatic `aria-describedby` and worked to make sure that anyone using TooltipAnchor properly defines its labeling. --- .../components/Artifacts/ArtifactVersion.tsx | 7 ++++- client/src/components/Chat/Landing.tsx | 1 + .../Chat/Messages/Content/DialogImage.tsx | 26 ++++++++++++++----- .../ConvoOptions/SharedLinkButton.tsx | 19 +++++++++++--- .../Builder/AssistantConversationStarters.tsx | 12 +++++---- packages/client/src/components/Tooltip.tsx | 3 --- 6 files changed, 49 insertions(+), 19 deletions(-) diff --git a/client/src/components/Artifacts/ArtifactVersion.tsx b/client/src/components/Artifacts/ArtifactVersion.tsx index 1998ff02..7d17416c 100644 --- a/client/src/components/Artifacts/ArtifactVersion.tsx +++ b/client/src/components/Artifacts/ArtifactVersion.tsx @@ -59,7 +59,12 @@ export default function ArtifactVersion({ + @@ -208,7 +213,12 @@ export default function DialogImage({ isOpen, onOpenChange, src = '', downloadIm + } @@ -217,22 +227,24 @@ export default function DialogImage({ isOpen, onOpenChange, src = '', downloadIm downloadImage()} variant="ghost" className="h-10 w-10 p-0"> + } /> setIsPromptOpen(!isPromptOpen)} variant="ghost" className="h-10 w-10 p-0" + aria-label={imageDetailsLabel} > {isPromptOpen ? ( diff --git a/client/src/components/Conversations/ConvoOptions/SharedLinkButton.tsx b/client/src/components/Conversations/ConvoOptions/SharedLinkButton.tsx index 9a2b7409..e5d1dbfb 100644 --- a/client/src/components/Conversations/ConvoOptions/SharedLinkButton.tsx +++ b/client/src/components/Conversations/ConvoOptions/SharedLinkButton.tsx @@ -113,6 +113,8 @@ export default function SharedLinkButton({ } }; + const qrCodeLabel = showQR ? localize('com_ui_hide_qr') : localize('com_ui_show_qr'); + return ( <>
@@ -130,6 +132,7 @@ export default function SharedLinkButton({ )} @@ -154,7 +162,12 @@ export default function SharedLinkButton({ ( - )} diff --git a/client/src/components/SidePanel/Builder/AssistantConversationStarters.tsx b/client/src/components/SidePanel/Builder/AssistantConversationStarters.tsx index 9c8da37b..01b45c27 100644 --- a/client/src/components/SidePanel/Builder/AssistantConversationStarters.tsx +++ b/client/src/components/SidePanel/Builder/AssistantConversationStarters.tsx @@ -59,6 +59,10 @@ const AssistantConversationStarters: React.FC= Constants.MAX_CONVO_STARTERS; + const addConversationStarterLabel = hasReachedMax + ? localize('com_assistants_max_starters_reached') + : localize('com_ui_add'); + return (