From a525b12b5caa4faff9002a5e38d8d0c6d4fbd37f Mon Sep 17 00:00:00 2001 From: adilallo <39313955+adilallo@users.noreply.github.com> Date: Wed, 19 Aug 2026 11:48:51 -0600 Subject: [PATCH] =?UTF-8?q?Keep=20Triple=20Step=20art=20flush=20to=20the?= =?UTF-8?q?=20section=E2=80=99s=20right=20edge.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Drop the mid-width side gutter so the 1:2 ornament column meets the viewport from md up, while copy keeps its left inset. Co-authored-by: Cursor --- .../type/TripleStep/TripleStep.container.tsx | 2 +- app/components/type/TripleStep/TripleStep.view.tsx | 14 +++++++------- stories/type/TripleStep.stories.js | 2 +- tests/components/type/TripleStep.test.tsx | 6 ++++++ 4 files changed, 15 insertions(+), 9 deletions(-) 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]"); }); });