Drop the filled invert hover on Create rule and use the updated header portraits.

Ghost matches the current marketing header, so the button no longer picks up a brand ring on hover.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
adilalloandCursor committed 2026-09-29 15:25:29 -06:00
1 parent 9c5cbf3bcd
commit 47625b1c82
5 files changed
+12 -37

No files matched your search

+4 -5
View File
@@ -107,18 +107,17 @@ describe('Top "Create rule" button', () => {
expect(nav.className).not.toContain("min-h-[var(--spacing-scale-040)]");
});
it("uses filled invert for Create rule", () => {
it("uses ghost for Create rule", () => {
for (const folderTop of [false, true]) {
const { unmount } = renderWithProviders(<Top folderTop={folderTop} />);
const button = screen.getByRole("button", {
name: /create a new rule/i,
});
expect(button.className).toContain("bg-transparent");
expect(button.className).toContain(
"bg-[var(--color-surface-default-primary)]",
);
expect(button.className).toContain(
"text-[var(--color-content-default-primary)]",
"text-[var(--color-content-default-brand-primary)]",
);
expect(button.className).toContain("hover:border-transparent");
unmount();
}
});