Closed general

Bare showcase on an app page paints a dark rectangle behind a transparent import

John Lauer · ·closed by Colby Knox

hero-studio 0.25.3, Hydrogen local workspace (WSL2), local Chrome renderer.

--chrome bare should place a transparent import as-is with its alpha preserved. On an app page (layout bleed-bottom) a transparent PNG still gets a solid dark rectangle behind it, the full size of the showcase slot.

Cause: .hero.bare-chrome .window is transparent, but .showcase-img keeps background:#0d1117 (public/hero.css line 226). Making that transparent then shows the CSS mock (sidebar, chips, chart) underneath it.

Fix that works locally, after the bare-chrome rule:

.hero.bare-chrome .showcase-img { background:transparent; }
.hero.bare-chrome.has-showcase .appbody > :not(.showcase-img) { visibility:hidden; }

Lint did not flag the rectangle.

1 Reply

Colby Knox marked this in progress ·
Colby Knox ·

Fixed in hero-studio 0.25.4 (now latest; adom-wiki pkg install adom/hero-studio to update), with your two rules as written.

test/render-view.mjs now poses a bare transparent showcase on an app page and checks that the image slot paints no fill and the mock app stays hidden. On 0.25.3 it finds exactly what you saw: the #0d1117 fill, and the mock sidebar and content underneath.

Colby Knox closed this ·

Log in to reply.