fix(web): active lib highlight, rail a11y names, card focus ring, AA accent + destructive tokens, touch-reachable menu, brand wordmark, chrome unify

This commit is contained in:
2026-09-08 20:37:20 +08:00
parent 7e0847815d
commit 6fbe3b0794
7 changed files with 50 additions and 57 deletions
-12
View File
@@ -1,12 +0,0 @@
import { describe, expect, it } from "vitest";
import { formatSize } from "../src/components/ui";
describe("formatSize", () => {
it("renders human sizes across units", () => {
expect(formatSize(0)).toBe("");
expect(formatSize(512)).toBe("512 B");
expect(formatSize(2048)).toBe("2.0 KB");
expect(formatSize(15 * 1024 * 1024)).toBe("15 MB");
expect(formatSize(3.2 * 1024 ** 3)).toBe("3.2 GB");
});
});