From 740329693637181749c6dd6f31667af59b3abf3b Mon Sep 17 00:00:00 2001 From: Naumov Alexey Date: Thu, 20 Jan 2022 22:38:46 +0300 Subject: [PATCH] fix(core-blocks): CB-1542 add extra tooltip for labels --- .../core-blocks/src/FormControls/InputField.tsx | 4 +++- .../core-blocks/src/FormControls/Textarea.tsx | 4 +++- .../ObjectPropertyInfoForm/RenderField.tsx | 12 ++++++++---- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/webapp/packages/core-blocks/src/FormControls/InputField.tsx b/webapp/packages/core-blocks/src/FormControls/InputField.tsx index 42187d9e63..13c218dbf9 100644 --- a/webapp/packages/core-blocks/src/FormControls/InputField.tsx +++ b/webapp/packages/core-blocks/src/FormControls/InputField.tsx @@ -62,6 +62,7 @@ const INPUT_FIELD_STYLES = composes( type BaseProps = Omit, 'onChange' | 'name' | 'value'> & ILayoutSizeProps & { description?: string; + labelTooltip?: string; mod?: 'surface'; ref?: React.Ref; style?: ComponentStyle; @@ -105,6 +106,7 @@ export const InputField: InputFieldType = observer(function InputField({ children, className, description, + labelTooltip, mod, fill, small, @@ -161,7 +163,7 @@ export const InputField: InputFieldType = observer(function InputField({ return styled(styles)( - {children}{required && ' *'} + {children}{required && ' *'} , 'onChange' | 'style'> & ILayoutSizeProps & { + labelTooltip?: string; mod?: 'surface'; style?: ComponentStyle; embedded?: boolean; @@ -81,6 +82,7 @@ export const Textarea: TextareaType = observer(function Textarea({ small, medium, large, + labelTooltip, mod, embedded, onChange = () => { }, @@ -104,7 +106,7 @@ export const Textarea: TextareaType = observer(function Textarea({ return styled(useStyles(baseFormControlStyles, styles, style))( - {children}{required && ' *'} + {children}{required && ' *'}