From a37cd3ff446d8b52b3f11a59159fe64c388c8d8b Mon Sep 17 00:00:00 2001 From: Christian Andolf Date: Tue, 29 Oct 2024 13:35:13 +0100 Subject: [PATCH] fix: only phrasing content is allowed inside label element --- .../FormContent/Search/index.tsx | 10 +++-- .../FormContent/Voucher/index.tsx | 37 ++++++++++++------- .../Forms/BookingWidget/FormContent/index.tsx | 4 +- .../TempDesignSystem/Form/Checkbox/index.tsx | 8 ++-- 4 files changed, 35 insertions(+), 24 deletions(-) diff --git a/components/Forms/BookingWidget/FormContent/Search/index.tsx b/components/Forms/BookingWidget/FormContent/Search/index.tsx index 12d5e740c..5461426a7 100644 --- a/components/Forms/BookingWidget/FormContent/Search/index.tsx +++ b/components/Forms/BookingWidget/FormContent/Search/index.tsx @@ -128,10 +128,12 @@ export default function Search({ locations }: SearchProps) { }) => (
diff --git a/components/Forms/BookingWidget/FormContent/Voucher/index.tsx b/components/Forms/BookingWidget/FormContent/Voucher/index.tsx index 067f94c0c..dce678dda 100644 --- a/components/Forms/BookingWidget/FormContent/Voucher/index.tsx +++ b/components/Forms/BookingWidget/FormContent/Voucher/index.tsx @@ -34,8 +34,8 @@ export default function Voucher() { >
@@ -49,21 +49,30 @@ export default function Voucher() { arrow="left" >
-
diff --git a/components/Forms/BookingWidget/FormContent/index.tsx b/components/Forms/BookingWidget/FormContent/index.tsx index 002edb44a..d5dba4d47 100644 --- a/components/Forms/BookingWidget/FormContent/index.tsx +++ b/components/Forms/BookingWidget/FormContent/index.tsx @@ -50,8 +50,8 @@ export default function FormContent({
diff --git a/components/TempDesignSystem/Form/Checkbox/index.tsx b/components/TempDesignSystem/Form/Checkbox/index.tsx index ee3967d8d..60bd81935 100644 --- a/components/TempDesignSystem/Form/Checkbox/index.tsx +++ b/components/TempDesignSystem/Form/Checkbox/index.tsx @@ -33,12 +33,12 @@ export default function Checkbox({ > {({ isSelected }) => ( <> -
-
+ + {isSelected && } -
+ {children} -
+ {fieldState.error ? (