Skip to content

Commit 36a1240

Browse files
committed
fix(payments-ui): Fix Radix hydration mismatch
Because - Radix hydration mismatch console warning due to SignInForm component This pull request - Adds id/htmlFor to SignInForm email field Closes - PAY-3632
1 parent eaae7f6 commit 36a1240

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • libs/payments/ui/src/lib/client/components/SignInForm

libs/payments/ui/src/lib/client/components/SignInForm/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ export const SignInForm = ({
5656
aria-label="Sign-in/sign-up form"
5757
>
5858
<Form.Field name="email" className="my-6">
59-
<Form.Label className="text-grey-400 block mb-1 text-start">
59+
<Form.Label htmlFor="email-input" className="text-grey-400 block mb-1 text-start">
6060
<Localized id="signin-form-email-input">Enter your email</Localized>
6161
</Form.Label>
6262
<Form.Control asChild>
6363
<input
64+
id="email-input"
6465
className="w-full border rounded-md border-black/30 p-3 placeholder:text-grey-500 placeholder:font-normal focus:border focus:!border-black/30 focus:!shadow-[0_0_0_3px_rgba(10,132,255,0.3)] focus-visible:outline-none data-[invalid=true]:border-alert-red data-[invalid=true]:text-alert-red data-[invalid=true]:shadow-inputError"
6566
type="email"
6667
name="email"

0 commit comments

Comments
 (0)