From 8400b4f920b41f6d8834af33521282ff312eb398 Mon Sep 17 00:00:00 2001 From: Joseph Richardson Date: Fri, 9 Aug 2024 10:34:42 -0400 Subject: [PATCH] A11y improvements Adds role to the chat area for screen reader updates Adds Aria labels to forms and buttons --- packages/react/core/src/exports/AiChat.tsx | 2 +- packages/react/core/src/sections/Composer/ComposerComp.tsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/react/core/src/exports/AiChat.tsx b/packages/react/core/src/exports/AiChat.tsx index 6f00bbf3..18d50e64 100644 --- a/packages/react/core/src/exports/AiChat.tsx +++ b/packages/react/core/src/exports/AiChat.tsx @@ -212,7 +212,7 @@ export const AiChat: ( userDefinedGreeting={uiOverrides.Greeting} /> -
+
{ value={props.prompt} onChange={handleChange} onKeyDown={handleKeyDown} + aria-label={props.placeholder} /> {!showCancelButton && (