Fix terms checkbox: wrap input inside label for reliable toggling
This commit is contained in:
1 parent
7412bd2dda
commit
3becaf5f4f
1 file changed
+4
-5
@@ -154,19 +154,18 @@ export function RegisterForm({
|
|||||||
<div className="rounded-md p-3 flex flex-col gap-3" style={{
|
<div className="rounded-md p-3 flex flex-col gap-3" style={{
|
||||||
backgroundColor: "color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
|
backgroundColor: "color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
|
||||||
}}>
|
}}>
|
||||||
<fieldset className="flex flex-wrap items-center w-full gap-3 text-sm">
|
<label className="flex flex-wrap items-center w-full gap-3 text-sm cursor-pointer">
|
||||||
<input
|
<input
|
||||||
id="terms"
|
|
||||||
name="terms"
|
name="terms"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
className="w-4 h-4 border-gray-300 rounded focus:ring-0 shrink-0"
|
className="w-4 h-4 border-gray-300 rounded focus:ring-0 shrink-0"
|
||||||
style={{ borderColor: "color-mix(in srgb, var(--color-text-muted) 30%, transparent)" }}
|
style={{ borderColor: "color-mix(in srgb, var(--color-text-muted) 30%, transparent)" }}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
<label htmlFor="terms" className="font-semibold cursor-pointer" style={{ color: "var(--color-text)" }}>
|
<span className="font-semibold" style={{ color: "var(--color-text)" }}>
|
||||||
{t("termsAccept", { hotel: hotelName })}
|
{t("termsAccept", { hotel: hotelName })}
|
||||||
</label>
|
</span>
|
||||||
</fieldset>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Captcha */}
|
{/* Captcha */}
|
||||||
|
|||||||
Reference in new issue
Block a user