From 00f6f0653bf5fb502f4b40f28ef3b2a7b0091608 Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Tue, 10 Nov 2026 18:32:52 +0100 Subject: [PATCH] Pakketkaarten: kleinere marge en kopgrootte op mobiel zodat lange titels niet overlopen Co-Authored-By: Claude Sonnet 5.5 --- .../features/redesign-modern-timetravel/audit.md | 12 ++++++++++++ .../landing/__tests__/PackagesSection.test.tsx | 12 ++++++++++++ src/features/landing/components/PackageCard.tsx | 4 ++-- .../landing/components/PackageCardSkeleton.tsx | 2 +- 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/aidlc-docs/features/redesign-modern-timetravel/audit.md b/aidlc-docs/features/redesign-modern-timetravel/audit.md index a26a147..5b02131 100644 --- a/aidlc-docs/features/redesign-modern-timetravel/audit.md +++ b/aidlc-docs/features/redesign-modern-timetravel/audit.md @@ -766,3 +766,15 @@ **Context**: Interim deploy and unit planning. --- + +## Test Feedback Round 2: Hovers, Nav Breakpoint, Menu Animation, Status Line + +**Timestamp**: 2026-11-11T13:00:00Z + +**User Input**: "De tests gaan fout. fix die en deploy opnieuw" / "De hover op de knoppen is erg subtiel ... De tekst 3 pakketten met vaste prijs voegt niks toe en mag weg. Vlak voordat het een mobiel menu wordt zie je de Start project-knop smaller worden met 2 regels tekst ... horizontale scrollbalk. In het mobiele menu is die knop misleidend ... mag op mobiel uit het menu. Verder wil ik voor het in en uitklappen een animatie." + +**AI Response**: "Run 644 failed on a race in useSwipeRow (active card set by an effect); fixed by deriving the active card per card set (f475280), run 649 green and deployed to test. Feedback round: stronger hovers (white buttons invert to black, outline button fills white, card CTAs go brand, panel buttons invert, chips fill, toggles tint), visible package count line made sr-only (kept as aria-live for screen readers), nav switches to the desktop bar at md with nowrap CTA and smaller gaps (fixes wrapping and the horizontal scroll), mobile menu without the Start project item and with an open/close animation (always mounted, invisible when closed, reduced-motion respected). Committed 0d7be24 and f503991 (revert of unrelated prettier changes in shared components), run 650 deployed to test." + +**Context**: Interim test feedback. + +--- diff --git a/src/features/landing/__tests__/PackagesSection.test.tsx b/src/features/landing/__tests__/PackagesSection.test.tsx index b4aadfd..ee186af 100644 --- a/src/features/landing/__tests__/PackagesSection.test.tsx +++ b/src/features/landing/__tests__/PackagesSection.test.tsx @@ -329,6 +329,18 @@ describe('PackagesSection', () => { expect(screen.getByTestId('packages-status')).toHaveAttribute('aria-live', 'polite'); }); + it('keeps long package titles inside the card on narrow screens (smaller padding and font, wrapping allowed)', async () => { + mockApi(packages); + renderSection(); + await loaded(); + const card = screen.getByTestId('package-card-pakket_01'); + expect(card).toHaveClass('px-6', 'sm:px-9'); + const title = within(card).getByRole('heading', { level: 3 }); + expect(title.className).toContain('text-[clamp(24px,6.6vw,30px)]'); + expect(title.className).toContain('[overflow-wrap:anywhere]'); + expect(title).toHaveClass('hyphens-auto'); + }); + it('gives chips a 44px touch target', async () => { mockApi(six); renderSection(); diff --git a/src/features/landing/components/PackageCard.tsx b/src/features/landing/components/PackageCard.tsx index 047a744..352c7b1 100644 --- a/src/features/landing/components/PackageCard.tsx +++ b/src/features/landing/components/PackageCard.tsx @@ -9,7 +9,7 @@ export function PackageCard({ pkg }: { pkg: PackageCardData }) { return (
)} -

+

{pkg.title}

diff --git a/src/features/landing/components/PackageCardSkeleton.tsx b/src/features/landing/components/PackageCardSkeleton.tsx index 3382f42..51daab1 100644 --- a/src/features/landing/components/PackageCardSkeleton.tsx +++ b/src/features/landing/components/PackageCardSkeleton.tsx @@ -3,7 +3,7 @@ export function PackageCardSkeleton() { return (