Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { describe, it, expect } from "vitest";
|
||||
import fs from "node:fs";
|
||||
|
||||
import {
|
||||
contrastRatio,
|
||||
@@ -39,6 +40,15 @@ describe("verify-color-contrast", () => {
|
||||
it("returns < 3 for the known low-contrast border/background pair", () => {
|
||||
expect(contrastRatio("#e5e7eb", "#f6f8fb")).toBeLessThan(3);
|
||||
});
|
||||
it("keeps app tertiary text and default links readable on secondary surfaces", () => {
|
||||
const secondarySurface = "#fafafa";
|
||||
expect(contrastRatio("#6d6d71", secondarySurface)).toBeGreaterThanOrEqual(4.5);
|
||||
expect(contrastRatio("#08739c", secondarySurface)).toBeGreaterThanOrEqual(4.5);
|
||||
|
||||
const theme = fs.readFileSync("apps/web/app/ui/theme.css", "utf8");
|
||||
expect(theme).toContain("--color-text-neutral-tertiary: var(--color-neutral-700);");
|
||||
expect(theme).toContain("--color-text-feedback-link-default: var(--color-feedback-information-700);");
|
||||
});
|
||||
});
|
||||
|
||||
describe("relativeLuminance", () => {
|
||||
|
||||
Reference in new issue
Block a user