Redesign Modern/Tijdreis, contactformulier via CMS, taalbestanden #17
@@ -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.
|
||||
|
||||
---
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -9,7 +9,7 @@ export function PackageCard({ pkg }: { pkg: PackageCardData }) {
|
||||
|
||||
return (
|
||||
<article
|
||||
className={`relative flex h-full flex-col px-9 pb-9 pt-10 ${
|
||||
className={`relative flex h-full flex-col px-6 pb-8 pt-9 sm:px-9 sm:pb-9 sm:pt-10 ${
|
||||
featured ? 'bg-brand text-on-brand' : 'bg-surface-2 text-text'
|
||||
}`}
|
||||
data-testid={`package-card-${pkg.id}`}
|
||||
@@ -19,7 +19,7 @@ export function PackageCard({ pkg }: { pkg: PackageCardData }) {
|
||||
Meest gekozen
|
||||
</span>
|
||||
)}
|
||||
<h3 className="mb-2.5 text-[30px] font-extrabold leading-[1.05] tracking-[-0.02em] [font-stretch:112%]">
|
||||
<h3 className="mb-2.5 hyphens-auto text-[clamp(24px,6.6vw,30px)] font-extrabold leading-[1.05] tracking-[-0.02em] [font-stretch:112%] [overflow-wrap:anywhere]">
|
||||
{pkg.title}
|
||||
</h3>
|
||||
<p className={`mb-9 text-base ${featured ? 'text-on-brand' : 'text-muted'}`}>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
export function PackageCardSkeleton() {
|
||||
return (
|
||||
<div
|
||||
className="flex h-full animate-pulse flex-col bg-surface-2 px-9 pb-9 pt-10"
|
||||
className="flex h-full animate-pulse flex-col bg-surface-2 px-6 pb-8 pt-9 sm:px-9 sm:pb-9 sm:pt-10"
|
||||
data-testid="package-card-skeleton"
|
||||
aria-hidden="true"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user