From 75a13d9df184da14cb1c406c3fd8b28bcc0a30d1 Mon Sep 17 00:00:00 2001 From: Marcel Raddatz Date: Thu, 2 Apr 2026 14:57:47 +0200 Subject: [PATCH] fix(auth): style login link green/font-medium per spec Spec shows green text with font-weight 500, no underline by default. Was dark text with underline. Co-Authored-By: Claude Opus 4.6 --- frontend/src/lib/auth/SignupForm.svelte | 2 +- frontend/src/lib/auth/SignupForm.test.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/auth/SignupForm.svelte b/frontend/src/lib/auth/SignupForm.svelte index 00c440b..ec1cf02 100644 --- a/frontend/src/lib/auth/SignupForm.svelte +++ b/frontend/src/lib/auth/SignupForm.svelte @@ -149,6 +149,6 @@ class="mt-[16px] text-center text-[12px] text-[var(--color-text-muted)] md:text-[13px]" > - Du hast bereits ein Konto? Anmelden + Du hast bereits ein Konto? Anmelden

diff --git a/frontend/src/lib/auth/SignupForm.test.ts b/frontend/src/lib/auth/SignupForm.test.ts index fc92dcf..f891b69 100644 --- a/frontend/src/lib/auth/SignupForm.test.ts +++ b/frontend/src/lib/auth/SignupForm.test.ts @@ -16,10 +16,12 @@ describe('SignupForm', () => { expect(screen.getByRole('button', { name: /konto erstellen/i })).toBeInTheDocument(); }); - it('renders login link', () => { + it('renders login link with correct href and styling', () => { render(SignupForm); const link = screen.getByRole('link', { name: /anmelden/i }); expect(link).toHaveAttribute('href', '/login'); + expect(link.className).toContain('text-[var(--green)]'); + expect(link.className).toContain('font-medium'); }); it('renders heading and subtitle', () => {