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 4c7ef06a6d..cd2a7c9670 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={tString(language, 'ai_chat_ask', assistant.label)} label={
{t(language, 'ai_chat_ask', assistant.label)}