ui: the invert disc's half is actually filled — and the demos match

Lucide's Contrast leaves its half-moon unfilled (fill=none default) -
the owner's catch. Hand-rolled InvertDiscIcon: same geometry, the half
carries fill=currentColor, so the filled side is filled. The demo cards
get the identical disc + 'Invert colors' tooltip on their invert
toggles, matching the figures.
This commit is contained in:
amosblomqvist
2026-10-08 19:13:54 +03:00
parent 1beb54d3d2
commit d790384b72
4 changed files with 40 additions and 3 deletions
+6
View File
@@ -520,6 +520,12 @@ describe("artifact chrome — scrollbar, invert toggles, downloads (release poli
// The invert affordance: the contrast-circle disc + the tooltip.
assert.ok(html.includes("size-3"), "the icon disc");
assert.ok(html.includes('title="Invert colors"'), "the tooltip names the toggle");
// The half-moon is ACTUALLY filled (owner catch: lucide's Contrast
// renders it hollow — fill="none" default; ours fills currentColor).
assert.ok(
html.includes('fill="currentColor" stroke="none"'),
"the filled half of the invert disc",
);
});
it("svgNaturalWidth: declared px sizes parse; %, auto, and absent fall back to null", () => {