From 8ff9e7bb03d8291272a625f8250f5809788c2d9b Mon Sep 17 00:00:00 2001 From: Julius Schlapbach <80708107+sjschlapbach@users.noreply.github.com> Date: Mon, 9 Sep 2024 21:01:29 +0200 Subject: [PATCH] style: add maximum width to tooltips of form components and errors (#133) --- 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 && ( - +