From 19ef0a9bbb14e9d859b1b4c7b1a2cdba5e5fbcd6 Mon Sep 17 00:00:00 2001 From: Alano Terblanche <18033717+Benehiko@users.noreply.github.com> Date: Tue, 26 Sep 2023 09:51:45 +0200 Subject: [PATCH] feat: hide label on hidden input type (#149) --- src/react-components/input-field.tsx | 2 +- .../ory/helpers/node.spec.tsx | 28 +++++++++++++ .../ory/sections/auth-code-section.spec.tsx | 31 +++++++++++--- .../ory/sections/auth-code-section.tsx | 41 ++++++++++++------- 4 files changed, 81 insertions(+), 21 deletions(-) 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" && (