Align hero lockup type with Display and Paragraph styles.
Use 110% heading line-height, 14px subhead under 430, and pin Bricolage optical size so Medium stays Medium. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -24,4 +24,25 @@ describe("ContentLockup", () => {
|
||||
screen.getByText("Help your community make important decisions."),
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("uses Display line-height and Small/Paragraph on the hero lockup", () => {
|
||||
renderWithProviders(
|
||||
<ContentLockup
|
||||
variant="hero"
|
||||
title="Collaborate"
|
||||
subtitle="with clarity"
|
||||
description="Help your community make important decisions."
|
||||
/>,
|
||||
);
|
||||
|
||||
const title = screen.getByRole("heading", { name: "Collaborate" });
|
||||
expect(title.className).toContain("max-sm:leading-[110%]");
|
||||
expect(title.className).toContain("font-medium");
|
||||
|
||||
const description = screen.getByText(
|
||||
"Help your community make important decisions.",
|
||||
);
|
||||
expect(description.className).toContain("text-small-paragraph");
|
||||
expect(description.className).toContain("sm:text-large-paragraph");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user