From 49ed85490cba3b159eeedc5d4aa707feff42e2c4 Mon Sep 17 00:00:00 2001 From: Alano Terblanche <18033717+Benehiko@users.noreply.github.com> Date: Mon, 25 Sep 2023 15:39:29 +0200 Subject: [PATCH] feat: hide label on hidden input type --- src/react-components/input-field.tsx | 2 +- .../ory/helpers/node.spec.tsx | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 src/react-components/ory/helpers/node.spec.tsx diff --git a/src/react-components/input-field.tsx b/src/react-components/input-field.tsx index 35fa15cb6..3f40a29ff 100644 --- a/src/react-components/input-field.tsx +++ b/src/react-components/input-field.tsx @@ -40,7 +40,7 @@ export const InputField = ({ data-testid={dataTestid} className={cn(className, gridStyle({ gap: 4 }))} > - {title && ( + {title && props.type !== "hidden" && (