diff --git a/app/components/type/AboutHeader/AboutHeader.container.tsx b/app/components/type/AboutHeader/AboutHeader.container.tsx index 71e64ec..bd8fdca 100644 --- a/app/components/type/AboutHeader/AboutHeader.container.tsx +++ b/app/components/type/AboutHeader/AboutHeader.container.tsx @@ -5,7 +5,7 @@ import AboutHeaderView from "./AboutHeader.view"; import type { AboutHeaderProps } from "./AboutHeader.types"; /** - * Figma: "Type / AboutHeader" (22135-889654). + * Figma: "Section / About Header" (22135-889654) — 320-639 / 640-1440 / 1440+. */ const AboutHeaderContainer = memo((props) => { const titleId = useId(); diff --git a/app/components/type/AboutHeader/AboutHeader.view.tsx b/app/components/type/AboutHeader/AboutHeader.view.tsx index 226e715..a9d148a 100644 --- a/app/components/type/AboutHeader/AboutHeader.view.tsx +++ b/app/components/type/AboutHeader/AboutHeader.view.tsx @@ -10,7 +10,7 @@ function assetRelativeForInlineIcon(icon: "arrow" | "about"): string { } /** - * Figma: "Type / AboutHeader" (22135-889654). + * Figma: "Section / About Header" (22135-889654) — inline marks 32/29, 64/58, 80/80. */ function AboutHeaderView({ segments, @@ -39,19 +39,15 @@ function AboutHeaderView({ key={`${segment.icon}-${index}`} className={ segment.icon === "arrow" - ? "inline-flex h-[0.92em] min-h-[24px] max-h-[52px] shrink-0 items-center self-center md:max-h-[64px]" - : "inline-flex size-[29px] shrink-0 items-center justify-center md:size-[80px]" + ? "inline-flex size-[32px] shrink-0 items-center self-center md:size-[64px] xl:size-[80px]" + : "inline-flex size-[29px] shrink-0 items-center justify-center md:size-[58px] xl:size-[80px]" } > {/* eslint-disable-next-line @next/next/no-img-element -- decorative inline vector */} diff --git a/app/components/type/ContentLockup/ContentLockup.container.tsx b/app/components/type/ContentLockup/ContentLockup.container.tsx index f74fed9..9199f75 100644 --- a/app/components/type/ContentLockup/ContentLockup.container.tsx +++ b/app/components/type/ContentLockup/ContentLockup.container.tsx @@ -66,7 +66,7 @@ const ContentLockupContainer = memo( titleGroup: "flex flex-col gap-[var(--spacing-scale-008)] lg:gap-[var(--spacing-scale-004)]", titleContainer: - "flex flex-wrap items-center gap-[var(--spacing-scale-008)] md:gap-[var(--spacing-scale-010)]", + "flex flex-wrap items-center gap-[var(--spacing-scale-010)] xl:gap-[var(--spacing-scale-012)]", title: "font-bricolage-grotesque font-medium text-[32px] leading-[1.1] md:text-large-display xl:text-x-large-display text-[var(--color-content-default-primary,white)]", subtitle: diff --git a/app/components/type/ContentLockup/ContentLockup.view.tsx b/app/components/type/ContentLockup/ContentLockup.view.tsx index c8b038f..7b27738 100644 --- a/app/components/type/ContentLockup/ContentLockup.view.tsx +++ b/app/components/type/ContentLockup/ContentLockup.view.tsx @@ -62,7 +62,7 @@ function ContentLockupView({ {titleContent ? (

{titleContent}

diff --git a/tests/components/type/AboutHeader.test.tsx b/tests/components/type/AboutHeader.test.tsx index 8b60162..aabd8cc 100644 --- a/tests/components/type/AboutHeader.test.tsx +++ b/tests/components/type/AboutHeader.test.tsx @@ -17,4 +17,30 @@ describe("AboutHeader", () => { screen.getByRole("heading", { name: /CommunityRule helps/i }), ).toBeInTheDocument(); }); + + it("sizes inline marks to the 320 / 640 / 1440 About Header variants", () => { + const { container } = render( + , + ); + + const heading = screen.getByRole("heading"); + expect(heading.className).toContain("gap-[var(--spacing-scale-010)]"); + expect(heading.className).toContain("xl:gap-[var(--spacing-scale-012)]"); + + const marks = container.querySelectorAll("h1 span.inline-flex"); + expect(marks).toHaveLength(2); + expect(marks[0]?.className).toContain("size-[32px]"); + expect(marks[0]?.className).toContain("md:size-[64px]"); + expect(marks[0]?.className).toContain("xl:size-[80px]"); + expect(marks[1]?.className).toContain("size-[29px]"); + expect(marks[1]?.className).toContain("md:size-[58px]"); + expect(marks[1]?.className).toContain("xl:size-[80px]"); + }); });