From c596fa2cf7b74231d2c123528c6426ed890035c7 Mon Sep 17 00:00:00 2001 From: sjschlapbach Date: Mon, 9 Sep 2024 20:58:47 +0200 Subject: [PATCH] style: add maximum width to tooltips of form components and errors --- packages/design-system/src/ColorPicker.tsx | 6 +++++- packages/design-system/src/DateChanger.tsx | 6 +++++- packages/design-system/src/FormLabel.tsx | 5 ++++- packages/design-system/src/Switch.tsx | 6 +++++- packages/design-system/src/Workflow.tsx | 2 +- packages/design-system/src/forms/FormikDateField.tsx | 2 +- packages/design-system/src/forms/NumberField.tsx | 6 +++++- packages/design-system/src/forms/SelectField.tsx | 2 +- packages/design-system/src/forms/TextField.tsx | 6 +++++- packages/design-system/src/forms/TextareaField.tsx | 2 +- 10 files changed, 33 insertions(+), 10 deletions(-) diff --git a/packages/design-system/src/ColorPicker.tsx b/packages/design-system/src/ColorPicker.tsx index 582e97c5..ffc35d08 100644 --- a/packages/design-system/src/ColorPicker.tsx +++ b/packages/design-system/src/ColorPicker.tsx @@ -229,7 +229,11 @@ export function ColorPicker({ )} {error && isTouched && ( - + )} {error && !hideError && isTouched && ( - + )} {error && !hideError && ( - + diff --git a/packages/design-system/src/forms/FormikDateField.tsx b/packages/design-system/src/forms/FormikDateField.tsx index effb5a53..5ccfe3d3 100644 --- a/packages/design-system/src/forms/FormikDateField.tsx +++ b/packages/design-system/src/forms/FormikDateField.tsx @@ -117,7 +117,7 @@ export function FormikDateField({ {error && !hideError && isTouched && ( - + {error && !hideError && isTouched && ( - +