Skip to content

Fix snapshot/renderblocks for disabled blocks#11272

Open
microbit-matt-hillsdon wants to merge 1 commit intomicrosoft:masterfrom
microbit-matt-hillsdon:fix-disabled-snapshot
Open

Fix snapshot/renderblocks for disabled blocks#11272
microbit-matt-hillsdon wants to merge 1 commit 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.
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.

1 participant