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:
@@ -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/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user