You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
J2: FlipCard that flips with a button, a tap or hover #222
#212 (PRD: website redesign v2, delivery steps J1 to J6)
What to build
A flipCard slot recipe and a FlipCard component carry the flip mechanism once. Home enjeu cards, person cards and tool cards all use it.
A visitor flips a card with its button (Enter or Space), with a tap, or on hover where hover exists.
The back is reachable by keyboard and announced to screen readers.
The card has a fixed height.
Copy never says "Survolez" (hover). Wording fits touch and keyboard too.
The default variant serves enjeu cards (home) and tool cards (technology). The person variant comes in J2: PersonCard, the person variant of FlipCard #223 (J2: PersonCard, the person variant of FlipCard).
Acceptance criteria
RTL tests in jsdom: the card flips on its button with Enter and Space, and its back content becomes reachable.
jest-axe passes on both faces.
A tap flips the card on a phone viewport (checked by hand on the preview).
Activity