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 <noreply@anthropic.com>
This commit is contained in:
@@ -149,6 +149,6 @@
|
|||||||
class="mt-[16px] text-center text-[12px] text-[var(--color-text-muted)]
|
class="mt-[16px] text-center text-[12px] text-[var(--color-text-muted)]
|
||||||
md:text-[13px]"
|
md:text-[13px]"
|
||||||
>
|
>
|
||||||
Du hast bereits ein Konto? <a href="/login" class="text-[var(--color-text)] underline">Anmelden</a>
|
Du hast bereits ein Konto? <a href="/login" class="font-medium text-[var(--green)] hover:underline">Anmelden</a>
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -16,10 +16,12 @@ describe('SignupForm', () => {
|
|||||||
expect(screen.getByRole('button', { name: /konto erstellen/i })).toBeInTheDocument();
|
expect(screen.getByRole('button', { name: /konto erstellen/i })).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('renders login link', () => {
|
it('renders login link with correct href and styling', () => {
|
||||||
render(SignupForm);
|
render(SignupForm);
|
||||||
const link = screen.getByRole('link', { name: /anmelden/i });
|
const link = screen.getByRole('link', { name: /anmelden/i });
|
||||||
expect(link).toHaveAttribute('href', '/login');
|
expect(link).toHaveAttribute('href', '/login');
|
||||||
|
expect(link.className).toContain('text-[var(--green)]');
|
||||||
|
expect(link.className).toContain('font-medium');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('renders heading and subtitle', () => {
|
it('renders heading and subtitle', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user