Skip to content

J2: FlipCard that flips with a button, a tap or hover #222

Closed

Description

@wab

Parent

#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).
  • FlipCard has its own section on /design-system.

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-for-agentFully specified, AFK-ready for an agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions