From 5be658655b2cbb4cca90d6df71158f2ca5010b1d Mon Sep 17 00:00:00 2001 From: huangkevin-apr Date: Fri, 23 Jan 2026 10:41:07 +0100 Subject: [PATCH 1/2] Fix: Accessible name mismatch for AI Chat button --- packages/gitbook/src/components/AIChat/AIChatButton.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/gitbook/src/components/AIChat/AIChatButton.tsx b/packages/gitbook/src/components/AIChat/AIChatButton.tsx index 4c7ef06a6d..41a2b662dd 100644 --- a/packages/gitbook/src/components/AIChat/AIChatButton.tsx +++ b/packages/gitbook/src/components/AIChat/AIChatButton.tsx @@ -27,6 +27,7 @@ export function AIChatButton(props: { iconOnly={!showLabel || isMobile} size="medium" variant="header" + aria-label={t(language, 'ai_chat_ask', assistant.label)} label={
{t(language, 'ai_chat_ask', assistant.label)} From bc80ccb1cffbca6f1ba39a4ed34b5627edd97279 Mon Sep 17 00:00:00 2001 From: huangkevin-apr Date: Thu, 29 Jan 2026 12:47:19 +0100 Subject: [PATCH 2/2] Fix AI chat button aria-label and add changeset --- .changeset/clean-turtles-wonder.md | 5 +++++ packages/gitbook/src/components/AIChat/AIChatButton.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/clean-turtles-wonder.md diff --git a/.changeset/clean-turtles-wonder.md b/.changeset/clean-turtles-wonder.md new file mode 100644 index 0000000000..1b701d4562 --- /dev/null +++ b/.changeset/clean-turtles-wonder.md @@ -0,0 +1,5 @@ +--- +"gitbook": patch +--- + +Fix: Accessible name mismatch for AI Chat button diff --git a/packages/gitbook/src/components/AIChat/AIChatButton.tsx b/packages/gitbook/src/components/AIChat/AIChatButton.tsx index 41a2b662dd..cd2a7c9670 100644 --- a/packages/gitbook/src/components/AIChat/AIChatButton.tsx +++ b/packages/gitbook/src/components/AIChat/AIChatButton.tsx @@ -27,7 +27,7 @@ export function AIChatButton(props: { iconOnly={!showLabel || isMobile} size="medium" variant="header" - aria-label={t(language, 'ai_chat_ask', assistant.label)} + aria-label={tString(language, 'ai_chat_ask', assistant.label)} label={
{t(language, 'ai_chat_ask', assistant.label)}