bug: blocky visual code delete button #122

Closed
opened 2026-05-11 21:06:41 +00:00 by Zhekrom · 1 comment

The delete button doesn't delete anything anywhere.

Pressing the delete button does nothing; furthermore, the four buttons are barely visible and may go unnoticed by the user.

The delete button doesn't delete anything anywhere. Pressing the delete button does nothing; furthermore, the four buttons are barely visible and may go unnoticed by the user.
Owner

Resolved in spikersoft-angular PR #45 (merged to master).

The core problem was the second half of this report — "the four buttons are barely visible and may go unnoticed." The toolbar actions had very low contrast at rest, so the trash/discard button looked inert, which is why it seemed like "the delete button doesn't delete anything." PR #45 brightens the enabled state and increases the disabled-state opacity so the buttons (and whether they're actionable) are clearly visible.

On the function itself: the trash icon is Discard all blocks — it calls Blockly's workspace.clear() and is enabled whenever the workspace has blocks (hasBlocks(), driven by the workspace change listener). That path works. To delete a single block, use Blockly's built-ins: select it and press Delete/Backspace, or drag it to the trashcan (enabled in this workspace). Closing — please reopen if the discard button still appears to do nothing with blocks present.

Resolved in `spikersoft-angular` PR #45 (merged to `master`). The core problem was the second half of this report — *"the four buttons are barely visible and may go unnoticed."* The toolbar actions had very low contrast at rest, so the trash/discard button looked inert, which is why it seemed like "the delete button doesn't delete anything." PR #45 brightens the enabled state and increases the disabled-state opacity so the buttons (and whether they're actionable) are clearly visible. On the function itself: the trash icon is **Discard all blocks** — it calls Blockly's `workspace.clear()` and is enabled whenever the workspace has blocks (`hasBlocks()`, driven by the workspace change listener). That path works. To delete a **single** block, use Blockly's built-ins: select it and press Delete/Backspace, or drag it to the trashcan (enabled in this workspace). Closing — please reopen if the discard button still appears to do nothing with blocks present.
Sign in to join this conversation.