From 520db190fb7ed5a4927d68d5a95c11647a8863c4 Mon Sep 17 00:00:00 2001 From: electricsteve <96793824+electricsteve@users.noreply.github.com> Date: Thu, 22 Jan 2026 23:48:38 +0100 Subject: [PATCH] card component variant theoretical fix --- preview/src/components/card/variants/main/mod.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/preview/src/components/card/variants/main/mod.rs b/preview/src/components/card/variants/main/mod.rs index 466971de..b0e477c2 100644 --- a/preview/src/components/card/variants/main/mod.rs +++ b/preview/src/components/card/variants/main/mod.rs @@ -16,7 +16,7 @@ pub fn Demo() -> Element { } } CardContent { - form { + form { id: "login-form", div { style: "display: flex; flex-direction: column; gap: 1.5rem;", div { style: "display: grid; gap: 0.5rem;", Label { html_for: "email", "Email" } @@ -41,7 +41,12 @@ pub fn Demo() -> Element { } } CardFooter { style: "flex-direction: column; gap: 0.5rem;", - Button { r#type: "submit", style: "width: 100%;", "Login" } + Button { + r#type: "submit", + form: "login-form", + style: "width: 100%;", + "Login" + } Button { variant: ButtonVariant::Outline, style: "width: 100%;", "Login with Google" } } }