diff --git a/frontend/src/Editor/Components/TextInput.jsx b/frontend/src/Editor/Components/TextInput.jsx index 394879ef46..8f1c51ce0f 100644 --- a/frontend/src/Editor/Components/TextInput.jsx +++ b/frontend/src/Editor/Components/TextInput.jsx @@ -109,7 +109,11 @@ export const TextInput = function TextInput({ value={value} data-cy={`draggable-widget-${String(component.name).toLowerCase()}`} /> -
+
{validationError}
diff --git a/frontend/src/Editor/WidgetManager/widgetConfig.js b/frontend/src/Editor/WidgetManager/widgetConfig.js index 59a35f2dcc..df4c0289e4 100644 --- a/frontend/src/Editor/WidgetManager/widgetConfig.js +++ b/frontend/src/Editor/WidgetManager/widgetConfig.js @@ -961,6 +961,11 @@ export const widgets = [ displayName: 'Border Color', validation: { schema: { type: 'string' } }, }, + errTextColor: { + type: 'color', + displayName: 'Error Text Color', + validation: { schema: { type: 'string' } }, + }, borderRadius: { type: 'code', displayName: 'Border radius', @@ -1020,6 +1025,7 @@ export const widgets = [ styles: { textColor: { value: '#000' }, borderColor: { value: '#dadcde' }, + errTextColor: { value: '#ff0000' }, borderRadius: { value: '{{0}}' }, visibility: { value: '{{true}}' }, disabledState: { value: '{{false}}' },