Point color, radius, stroke, focus, and type tokens at the Figma scale so later sections use the same values.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
63d5d21ae0
commit
e808fe70bf
162 files changed
+1385
-1377
No files matched your search
@@ -102,9 +102,9 @@ describe('Top "Create rule" button', () => {
|
||||
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)]");
|
||||
expect(nav.className).toContain("py-[var(--space-200)]");
|
||||
expect(nav.className).toContain("lg:py-[var(--space-400)]");
|
||||
expect(nav.className).not.toContain("min-h-[var(--space-1000)]");
|
||||
});
|
||||
|
||||
it("uses ghost for Create rule", () => {
|
||||
@@ -188,7 +188,7 @@ describe("Top header chrome", () => {
|
||||
expect(tab?.className).toContain("sm:flex-1");
|
||||
expect(nav?.className).toContain("md:absolute");
|
||||
expect(nav?.className).toContain(
|
||||
"md:left-[calc(50vw-var(--spacing-scale-016))]",
|
||||
"md:left-[calc(50vw-var(--space-400))]",
|
||||
);
|
||||
expect(nav?.className).not.toContain("ml-auto");
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user