From c438c9fc06549eafbdaad120bcc7b1167e74ed50 Mon Sep 17 00:00:00 2001 From: Vadzim Hvazdovich Date: Tue, 23 Jan 2024 12:18:45 +0300 Subject: [PATCH 1/2] EPMRPP-88348 || Description is not added to plugin issue when posting it if it contains label --- .../fieldTextFlex/fieldTextFlex.jsx | 15 ++- .../fieldTextFlex/fieldTextFlex.scss | 99 ++++++++++++++----- .../fields/dynamicFieldsSection/constants.js | 1 + .../dynamicFieldsSection/dynamicFieldMap.js | 3 + .../dynamicFieldsSection/fields/index.js | 1 + .../fields/multilineTextField.jsx | 47 +++++++++ 6 files changed, 134 insertions(+), 32 deletions(-) create mode 100644 app/src/components/fields/dynamicFieldsSection/fields/multilineTextField.jsx diff --git a/app/src/componentLibrary/fieldTextFlex/fieldTextFlex.jsx b/app/src/componentLibrary/fieldTextFlex/fieldTextFlex.jsx index 2a38f69029..1b6477b597 100644 --- a/app/src/componentLibrary/fieldTextFlex/fieldTextFlex.jsx +++ b/app/src/componentLibrary/fieldTextFlex/fieldTextFlex.jsx @@ -22,6 +22,8 @@ const cx = classNames.bind(styles); const HEIGHT = 72; const BORDER = 2; +const LIGHT_VARIANT = 'light'; +const DARK_VARIANT = 'dark'; export const FieldTextFlex = ({ value, @@ -38,6 +40,7 @@ export const FieldTextFlex = ({ className, label, helpText, + variant, }) => { const resizeHeight = (e) => { e.target.style.height = `${HEIGHT}px`; @@ -45,10 +48,10 @@ export const FieldTextFlex = ({ }; return ( <> - {label && {label}} + {label && {label}}