diff --git a/app/components/type/TripleStep/TripleStep.container.tsx b/app/components/type/TripleStep/TripleStep.container.tsx index 4a958dc..09fdf63 100644 --- a/app/components/type/TripleStep/TripleStep.container.tsx +++ b/app/components/type/TripleStep/TripleStep.container.tsx @@ -5,7 +5,7 @@ import TripleStepView from "./TripleStep.view"; import type { TripleStepProps } from "./TripleStep.types"; /** - * Figma: **Section / Triple Step** ([22084-859405](https://www.figma.com/design/agv0VBLiBlcnSAaiAORgPR/Community-Rule-System?node-id=22084-859405&m=dev)); type baseline ([22112-871527](https://www.figma.com/design/agv0VBLiBlcnSAaiAORgPR/Community-Rule-System?node-id=22112-871527&m=dev)); **md+** two-column + **`triple-step.svg`**. + * Figma: **Section / Triple Step** ([22084-859405](https://www.figma.com/design/agv0VBLiBlcnSAaiAORgPR/Community-Rule-System?node-id=22084-859405&m=dev)); type baseline ([22112-871527](https://www.figma.com/design/agv0VBLiBlcnSAaiAORgPR/Community-Rule-System?node-id=22112-871527&m=dev)); **md+** two-column + **`triple-step.svg`** in a 1:2 frame (tablet [22084-859257](https://www.figma.com/design/agv0VBLiBlcnSAaiAORgPR/Community-Rule-System?node-id=22084-859257&m=dev); desktop [22084-858823](https://www.figma.com/design/agv0VBLiBlcnSAaiAORgPR/Community-Rule-System?node-id=22084-858823&m=dev)). */ const TripleStepContainer = memo((props) => { const reactId = useId(); diff --git a/app/components/type/TripleStep/TripleStep.view.tsx b/app/components/type/TripleStep/TripleStep.view.tsx index 384c6d1..779c69f 100644 --- a/app/components/type/TripleStep/TripleStep.view.tsx +++ b/app/components/type/TripleStep/TripleStep.view.tsx @@ -28,10 +28,10 @@ function TripleStepView({
-
-
+
+

diff --git a/stories/type/TripleStep.stories.js b/stories/type/TripleStep.stories.js index cbacbc8..f8c8371 100644 --- a/stories/type/TripleStep.stories.js +++ b/stories/type/TripleStep.stories.js @@ -23,7 +23,7 @@ export default { docs: { description: { component: - "Figma **Section / Triple Step** ([22084-859405](https://www.figma.com/design/agv0VBLiBlcnSAaiAORgPR/Community-Rule-System?node-id=22084-859405&m=dev)); type baseline ([22112-871527](https://www.figma.com/design/agv0VBLiBlcnSAaiAORgPR/Community-Rule-System?node-id=22112-871527)). Headline uses **Large/Heading** from **md**; steps use **18px/22px** Bricolage medium + **Small/Paragraph** (14/20); outline CTA; **md+** second column shows **`triple-step.svg`**.", + "Figma **Section / Triple Step** ([22084-859405](https://www.figma.com/design/agv0VBLiBlcnSAaiAORgPR/Community-Rule-System?node-id=22084-859405&m=dev)); type baseline ([22112-871527](https://www.figma.com/design/agv0VBLiBlcnSAaiAORgPR/Community-Rule-System?node-id=22112-871527)). Headline uses **Large/Heading** from **md**; steps use **18px/22px** Bricolage medium + **Small/Paragraph** (14/20); outline CTA; **md+** right column is a 1:2 **`triple-step.svg`** frame flush to the section edge.", }, }, }, diff --git a/tests/components/type/TripleStep.test.tsx b/tests/components/type/TripleStep.test.tsx index 9335b41..0098e84 100644 --- a/tests/components/type/TripleStep.test.tsx +++ b/tests/components/type/TripleStep.test.tsx @@ -28,5 +28,11 @@ describe("TripleStep", () => { "href", "/create", ); + + const artImg = document.querySelector( + '[data-figma-node="22084-859405"] img', + ); + expect(artImg).toBeTruthy(); + expect(artImg?.parentElement).toHaveClass("aspect-[1/2]"); }); });