blockly-samples icon indicating copy to clipboard operation
blockly-samples copied to clipboard

Disabled blocks transparent in downloaded screenshots

Open laurensvalk opened this issue 1 year ago • 1 comments

Check for duplicates

  • [X] I have searched for similar issues before opening a new one.

Component

dev-tools/screenshot

Description

Downloaded screenshots render disabled blocks as transparent, which makes them hard to see.

Expected result: Downloaded file looking the same, with the same grid-like block background as visible in the browser.

Reproduction steps

image


Following the steps on the advanced playground above produces:


screenshot (3)

Stack trace

No response

Screenshots

No response

laurensvalk avatar Jan 18 '24 15:01 laurensvalk

Thanks for the report. We'd happily take a patch for this one.

The code is in screenshot.js and I suspect that the problem is that there's a filter defined at the top level of the SVG that is applied to the disabled block but is somehow missed in the export.

rachel-fenichel avatar Jan 24 '24 19:01 rachel-fenichel