Skip to content

Fix snapshot/renderblocks for disabled blocks#11272

Merged
riknoll merged 2 commits intomicrosoft:masterfrom
microbit-matt-hillsdon:fix-disabled-snapshot
Apr 29, 2026
Merged

Fix snapshot/renderblocks for disabled blocks#11272
riknoll merged 2 commits intomicrosoft:masterfrom
microbit-matt-hillsdon:fix-disabled-snapshot

Conversation

@microbit-matt-hillsdon
Copy link
Copy Markdown
Contributor

They're missing the CSS variable introduced in Blockly 12 and so get the background of the block wrong.

This affects renderblocks and right-click "Snapshot".

It's a bit awkward to handle both in the SVG DOM case (where we can add it to the style attribute) and the serialized case where we want to move it to the new style tag. Other suggestions very welcome.

Before

image

(ignore the line at the bottom, that's my poor cropping skills)

After

image

They're missing the CSS variables introduced in Blockly 12 and so get the
background of the block wrong.
@riknoll riknoll enabled auto-merge (squash) April 29, 2026 21:37
@riknoll riknoll merged commit 73315c5 into microsoft:master Apr 29, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants