diff --git a/packages/features/form-builder/Components.tsx b/packages/features/form-builder/Components.tsx index 1cd065bba8..60fe399f1c 100644 --- a/packages/features/form-builder/Components.tsx +++ b/packages/features/form-builder/Components.tsx @@ -6,7 +6,6 @@ import type { TextLikeComponentProps, SelectLikeComponentProps, } from "@calcom/app-store/routing-forms/components/react-awesome-query-builder/widgets"; -import { classNames } from "@calcom/lib"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import type { BookingFieldType } from "@calcom/prisma/zod-utils"; import { @@ -153,10 +152,7 @@ export const Components: Record = { value[index] = e.target.value; setValue(value); }} - className={classNames(inputClassName, "border-r-0")} - addOnClassname={classNames( - "border-default border block border-l-0 disabled:bg-emphasis disabled:hover:cursor-not-allowed bg-transparent disabled:text-subtle border-subtle " - )} + className={inputClassName} placeholder={placeholder} label={<>} required @@ -170,7 +166,7 @@ export const Components: Record = { value.splice(index, 1); setValue(value); }}> - + ) : null diff --git a/packages/ui/components/form/inputs/Input.tsx b/packages/ui/components/form/inputs/Input.tsx index 21934c73eb..391f15c33f 100644 --- a/packages/ui/components/form/inputs/Input.tsx +++ b/packages/ui/components/form/inputs/Input.tsx @@ -23,7 +23,7 @@ export const Input = forwardRef(function Input( {...props} ref={ref} className={classNames( - "hover:border-emphasis border-default bg-default placeholder:text-muted text-emphasis disabled:hover:border-default min-h-9 disabled:bg-subtle mb-2 block rounded-md border py-2 px-3 text-sm leading-4 focus:border-neutral-300 focus:outline-none focus:ring-2 focus:ring-neutral-800 focus:ring-offset-1 disabled:cursor-not-allowed", + "hover:border-emphasis border-default bg-default placeholder:text-muted text-emphasis disabled:hover:border-default disabled:bg-subtle mb-2 block h-9 rounded-md border py-2 px-3 text-sm leading-4 focus:border-neutral-300 focus:outline-none focus:ring-2 focus:ring-neutral-800 focus:ring-offset-1 disabled:cursor-not-allowed", isFullWidth && "w-full", props.className )} @@ -68,7 +68,7 @@ type AddonProps = { const Addon = ({ isFilled, children, className, error }: AddonProps) => (
@@ -144,8 +144,8 @@ export const InputField = forwardRef(function className={classNames( className, "disabled:bg-muted disabled:hover:border-subtle disabled:cursor-not-allowed", - addOnLeading && "rounded-l-none", - addOnSuffix && "rounded-r-none", + addOnLeading && "rounded-l-none border-l-0", + addOnSuffix && "rounded-r-none border-r-0", type === "search" && "pr-8", "!my-0 !ring-0" )}