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:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user