From 8f7cf0c69d1a1bf2efe251b3b0d7ef51e02869c7 Mon Sep 17 00:00:00 2001 From: tegwick Date: Sun, 27 Sep 2026 01:12:11 +0200 Subject: [PATCH] Keep the consent checkbox and its sentence on one line. Assistant: grok Assistant-Session: 01a0d25d-d358-7e13-b84a-d007fbb7e34f --- src/user_engine/web.py | 5 ++++- tests/test_web.py | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/user_engine/web.py b/src/user_engine/web.py index a0ad6e2..fa9008d 100644 --- a/src/user_engine/web.py +++ b/src/user_engine/web.py @@ -2488,7 +2488,10 @@ h1{{font:clamp(2.2rem,7vw,5.5rem)/.98 Georgia,serif;max-width:13ch}}a{{color:var .button{{display:inline-block;background:var(--accent);color:white;padding:.8rem 1.15rem;border-radius:.3rem;text-decoration:none}} table{{width:100%;border-collapse:collapse;background:#fff}}th,td{{padding:.75rem;text-align:left;border-bottom:1px solid var(--line)}} section{{margin:2rem 0}}form{{display:grid;gap:.8rem;max-width:42rem}}label{{display:grid;gap:.25rem}} -input,select,button{{font:inherit;padding:.65rem}}button{{background:var(--accent);color:white;border:0;border-radius:.3rem;cursor:pointer}} +label:has(input[type=checkbox]){{display:flex;align-items:center;gap:.6rem}} +input,select,button{{font:inherit;padding:.65rem}} +input[type=checkbox]{{width:1.15rem;height:1.15rem;margin:0;padding:0;flex:none}} +button{{background:var(--accent);color:white;border:0;border-radius:.3rem;cursor:pointer}} a:focus-visible,input:focus-visible,select:focus-visible,button:focus-visible{{outline:3px solid #e59f24;outline-offset:3px}}@media(max-width:640px){{body{{font-size:16px}}table{{display:block;overflow-x:auto}}}}
NetKingdom Identity{_ACCOUNT_NAVIGATION.get()}
{body}
""" diff --git a/tests/test_web.py b/tests/test_web.py index 7e07b21..485ba53 100644 --- a/tests/test_web.py +++ b/tests/test_web.py @@ -1130,6 +1130,9 @@ class PortalApplicationTests(unittest.TestCase): self.assertIn(b"Onboarding progress", html) self.assertIn(b"tenant:friendly:binky", html) self.assertIn(b"Profile and consent", html) + self.assertIn(b"label:has(input[type=checkbox]){display:flex", html) + self.assertIn(b'name="consent_accepted" type="checkbox" value="yes"', html) + self.assertIn(b"I accept portal terms version 1", html) self.assertIn(b"Mark complete", html) self.assertIn(b"provider-owned surface", html) completed, _ = invoke(