We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78fb573 commit 6431e6bCopy full SHA for 6431e6b
src/addons/addons/editor-colored-context-menus/userscript.js
@@ -17,7 +17,7 @@ export default async function ({ addon, console }) {
17
widgetDiv.classList.add("sa-contextmenu-colored");
18
widgetDiv.style.setProperty("--sa-contextmenu-bg", fill);
19
widgetDiv.style.setProperty("--sa-contextmenu-border", border);
20
- if (block.textColour) widgetDiv.style.setProperty("--sa-contextmenu-text", block.textColour);
+ widgetDiv.style.setProperty("--sa-contextmenu-text", block.textColour ?? "#fff");
21
};
22
23
const originalHandleRightClick = ScratchBlocks.Gesture.prototype.handleRightClick;
0 commit comments