Hug the standard header to Create rule with Figma vertical padding.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
adilallo
2026-08-19 09:29:40 -06:00
co-authored by Cursor
parent 6820315aaa
commit 7ea0a52bf1
2 changed files with 10 additions and 5 deletions
+8
View File
@@ -101,6 +101,14 @@ describe('Top "Create rule" button', () => {
).toBeNull();
});
it("pads the standard header to hug Create rule", () => {
renderWithProviders(<Top folderTop={false} />);
const nav = screen.getByRole("navigation", { name: "Main navigation" });
expect(nav.className).toContain("py-[var(--spacing-scale-008)]");
expect(nav.className).toContain("lg:py-[var(--spacing-scale-016)]");
expect(nav.className).not.toContain("min-h-[var(--spacing-scale-040)]");
});
it("uses filled invert for Create rule", () => {
for (const folderTop of [false, true]) {
const { unmount } = renderWithProviders(<Top folderTop={folderTop} />);