From 628e4cef7355c6198786621481b6368eff151a14 Mon Sep 17 00:00:00 2001 From: Sanjeev Suresh Date: Wed, 25 Oct 2023 10:36:27 -0700 Subject: [PATCH 1/2] fix: message input tooltip for character limit --- .../message_input/message_input.stories.js | 1 + .../message_input/message_input.vue | 27 ++++++++++++++++--- .../message_input_default.story.vue | 1 + 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/recipes/conversation_view/message_input/message_input.stories.js b/recipes/conversation_view/message_input/message_input.stories.js index 1b1ad0a0a8..0b0b0e1226 100644 --- a/recipes/conversation_view/message_input/message_input.stories.js +++ b/recipes/conversation_view/message_input/message_input.stories.js @@ -79,6 +79,7 @@ export const argsData = { placeholder: 'New message', inputAriaLabel: 'Input text field', noticeMessage: 'Files must be less than 32 MB to be sent as Dialpad messages.', + characterLimitWarningMessage: 'You have reached the character limit.', onSubmit: action('submit'), onFocus: action('focus'), onBlur: action('blur'), diff --git a/recipes/conversation_view/message_input/message_input.vue b/recipes/conversation_view/message_input/message_input.vue index 0f44f200b7..7e9e7d6588 100644 --- a/recipes/conversation_view/message_input/message_input.vue +++ b/recipes/conversation_view/message_input/message_input.vue @@ -145,13 +145,24 @@
-

- {{ characterLimitCount - inputLength }} -

+ + + Date: Thu, 26 Oct 2023 10:14:41 -0700 Subject: [PATCH 2/2] fix: move class to anchor --- recipes/conversation_view/message_input/message_input.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/conversation_view/message_input/message_input.vue b/recipes/conversation_view/message_input/message_input.vue index 7e9e7d6588..925bbb1a12 100644 --- a/recipes/conversation_view/message_input/message_input.vue +++ b/recipes/conversation_view/message_input/message_input.vue @@ -150,12 +150,12 @@ :enabled="characterLimitWarningMessage && (characterLimitCount - inputLength < 0)" placement="top-end" :message="characterLimitWarningMessage" - class="d-fc-error d-mr16 d-as-center dt-message-input--remaining-char" :offset="[10, -8]" >