From 8a531ff6c90f72693ab325c734263dfd114191cc Mon Sep 17 00:00:00 2001 From: Rebecca Alpert Date: Thu, 5 Dec 2024 17:21:03 -0500 Subject: [PATCH 1/2] fix(MessageBar): Add onChange for when microphone completes --- packages/module/src/MessageBar/MessageBar.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/module/src/MessageBar/MessageBar.tsx b/packages/module/src/MessageBar/MessageBar.tsx index 7c2fc56e..4b7ac014 100644 --- a/packages/module/src/MessageBar/MessageBar.tsx +++ b/packages/module/src/MessageBar/MessageBar.tsx @@ -147,6 +147,7 @@ export const MessageBar: React.FunctionComponent = ({ textarea.focus(); textarea.textContent = DOMPurify.sanitize(message); } + onChange && onChange({} as React.ChangeEvent, message); }; const renderButtons = () => { From 3ac9bc46ee680df703121227fd0b5c4e658bee29 Mon Sep 17 00:00:00 2001 From: Rebecca Alpert Date: Thu, 5 Dec 2024 19:17:01 -0500 Subject: [PATCH 2/2] fix(MessageBar): Placeholder should be 16px Placeholder was 16px only when used in chatbot, which affected our examples. --- packages/module/src/MessageBar/MessageBar.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/module/src/MessageBar/MessageBar.scss b/packages/module/src/MessageBar/MessageBar.scss index 807050ff..7df237d2 100644 --- a/packages/module/src/MessageBar/MessageBar.scss +++ b/packages/module/src/MessageBar/MessageBar.scss @@ -55,6 +55,7 @@ left: 16px; color: var(--pf-t--global--text--color--placeholder); pointer-events: none; + font-size: var(--pf-t--chatbot--font-size); } }