diff --git a/frontend/src/lib/auth/SignupForm.svelte b/frontend/src/lib/auth/SignupForm.svelte index 5637dd9..00c440b 100644 --- a/frontend/src/lib/auth/SignupForm.svelte +++ b/frontend/src/lib/auth/SignupForm.svelte @@ -139,7 +139,7 @@ diff --git a/frontend/src/lib/auth/SignupForm.test.ts b/frontend/src/lib/auth/SignupForm.test.ts index e7fdddb..fc92dcf 100644 --- a/frontend/src/lib/auth/SignupForm.test.ts +++ b/frontend/src/lib/auth/SignupForm.test.ts @@ -116,6 +116,12 @@ describe('SignupForm', () => { expect(screen.queryByText('Mindestens 8 Zeichen')).not.toBeInTheDocument(); }); + it('submit button uses --green-dark for WCAG AA contrast', () => { + render(SignupForm); + const button = screen.getByRole('button', { name: /konto erstellen/i }); + expect(button.className).toContain('bg-[var(--green-dark)]'); + }); + it('renders placeholders on inputs', () => { render(SignupForm); expect(screen.getByPlaceholderText('z.B. Sarah')).toBeInTheDocument();