Hug the standard header to Create rule with Figma vertical padding.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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} />);
|
||||
|
||||
Reference in New Issue
Block a user