fix: hex8 regression #10578 (#10773)

This commit is contained in:
zsviczian
2026-02-12 22:03:13 +01:00
committed by GitHub
parent a70417f23f
commit 8b3e149db6
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -22,9 +22,8 @@ describe("normalizeInputColor", () => {
});
it("does NOT add hash to hexa without hash (tinycolor detects as hex8, not hex)", () => {
// Note: tinycolor detects 8-digit hex as "hex8" format, not "hex",
// so the hash prefix logic doesn't apply
expect(normalizeInputColor("ff000080")).toBe("ff000080");
// Note: tinycolor detects 8-digit hex as "hex8" format, not "hex"
expect(normalizeInputColor("ff000080")).toBe("#ff000080");
});
});