From 298bf7e857b841c937213f4d8d714f5a1979e290 Mon Sep 17 00:00:00 2001 From: Till JS Date: Wed, 15 Apr 2026 15:45:41 +0200 Subject: [PATCH] fix(auth-ui): narrow login/register form and drop stuck skip link MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two visible issues on /login and /register in the Mana web app: - The "Zum Anmeldeformular springen" skip link was visible in the top-left corner instead of only on keyboard focus. It's an a11y nicety that in practice clutters the page for every user. Remove the button (and the dead skipToForm() handler in LoginPage) rather than try to fix an sr-only variant that apparently doesn't survive the Tailwind v4 @source pipeline here. - The form card rendered ~full-width on desktop even though the existing max-w-[440px] / max-w-[480px] arbitrary-value classes should have constrained it. Replace those with style:max-width inline so the 440px cap is guaranteed regardless of how Tailwind picks up classes from the shared-auth-ui package. Same changes applied to RegisterPage (only width — no skip link there) so the two pages stay visually identical. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../shared-auth-ui/src/pages/LoginPage.svelte | 17 +++-------------- .../src/pages/RegisterPage.svelte | 5 +++-- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/packages/shared-auth-ui/src/pages/LoginPage.svelte b/packages/shared-auth-ui/src/pages/LoginPage.svelte index 9d25eb47e..180a45d2b 100644 --- a/packages/shared-auth-ui/src/pages/LoginPage.svelte +++ b/packages/shared-auth-ui/src/pages/LoginPage.svelte @@ -465,10 +465,6 @@ setError(result.error || t.signInFailed, 'general'); } } - - function skipToForm() { - if (emailInput) emailInput.focus(); - } @@ -477,14 +473,6 @@ - -
{successAnnouncement}
@@ -520,7 +508,7 @@ {/if}
-
+
-
+