Treat the feature-grid toolkit control as underlined text and keep its card glyphs with the other URL-served icons.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
adilallo
2026-09-09 18:37:51 -06:00
co-authored by Cursor
parent 40225e2845
commit b42716c262
9 changed files with 31 additions and 9 deletions
@@ -63,4 +63,24 @@ describe("ContentLockup", () => {
expect(description.className).toContain("text-small-paragraph");
expect(description.className).toContain("sm:text-large-paragraph");
});
it("renders the feature lockup CTA as an inline text link", () => {
renderWithProviders(
<ContentLockup
variant="feature"
title="Tools for the parts that get hard"
subtitle="Every group runs into the same knots."
linkText="Explore the toolkit"
linkHref="/learn"
/>,
);
const link = screen.getByRole("link", { name: "Explore the toolkit" });
expect(link).toHaveAttribute("href", "/learn");
expect(link.className).toMatch(/underline/);
expect(link.className).toMatch(/w-fit/);
expect(link.className).not.toMatch(/px-1/);
expect(link.className).not.toMatch(/focus:ring-2/);
expect(link.className).toMatch(/focus-visible:outline/);
});
});