Limit the Use Cases tools row to the three catalog articles, make it mouse-draggable instead of auto-advancing, and put card titles on Bricolage Grotesque so they match the design.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
adilallo
2026-08-19 14:29:03 -06:00
co-authored by Cursor
parent 55915fd364
commit aa4fe47554
7 changed files with 56 additions and 29 deletions
+23 -6
View File
@@ -98,11 +98,28 @@ describe("RelatedArticles", () => {
variant="useCases"
/>,
);
expect(
screen.getByRole("heading", {
level: 2,
name: /Tools to set your group up for success/,
}),
).toBeInTheDocument();
const heading = screen.getByRole("heading", {
level: 2,
name: /Tools to set your group up for success/,
});
expect(heading).toBeInTheDocument();
expect(heading).toHaveClass(
"font-bricolage-grotesque",
"lg:text-xx-large-heading",
);
});
it("useCases variant uses a mouse-draggable track", () => {
render(
<RelatedArticles
relatedPosts={mockPosts}
currentPostSlug="current"
variant="useCases"
/>,
);
expect(screen.getByTestId("related-articles-track")).toHaveClass(
"overflow-x-auto",
"cursor-grab",
);
});
});
+1 -1
View File
@@ -72,7 +72,7 @@ describe("ContentContainer", () => {
const title = screen.getByText("Test Article Title");
expect(title).toBeInTheDocument();
expect(title).toHaveClass(
"font-bricolage",
"font-bricolage-grotesque",
"font-medium",
"text-xx-small-display",
"text-[var(--color-content-inverse-brand-royal)]",