From 22bb9ce4947139840a537bbe9ecc594ddba4c8e6 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 31 Jul 2026 17:34:12 +0000 Subject: [PATCH 1/2] fix: normalize font-weight for workspace comments in Zelos Block comments already forced font-weight: normal under Zelos while workspace comments inherited bold .blocklyText styling. Target the shared CommentEditor textarea classes so both comment types match. Fixes #9348 Co-authored-by: Anish Kataria --- packages/blockly/core/renderers/zelos/constants.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/blockly/core/renderers/zelos/constants.ts b/packages/blockly/core/renderers/zelos/constants.ts index b0bf264f91e..e9756112f4f 100644 --- a/packages/blockly/core/renderers/zelos/constants.ts +++ b/packages/blockly/core/renderers/zelos/constants.ts @@ -729,7 +729,8 @@ export class ConstantProvider extends BaseConstantProvider { `pt ${this.FIELD_TEXT_FONTFAMILY};`, `}`, - `${selector} .blocklyTextInputBubble textarea {`, + // Comments share .blocklyText with block labels; keep comment text normal. + `${selector} textarea.blocklyCommentText.blocklyTextarea {`, `font-weight: normal;`, `}`, From 39cb60745d72b6427dbd46fc63c3175864a473f7 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 31 Jul 2026 17:46:20 +0000 Subject: [PATCH 2/2] fix: use shared .blocklyCommentText selector for Zelos font-weight Simplify the comment font-weight override to target .blocklyCommentText so both block and workspace comments get normal weight under Zelos. Fixes #9348 Co-authored-by: Anish Kataria --- packages/blockly/core/renderers/zelos/constants.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/blockly/core/renderers/zelos/constants.ts b/packages/blockly/core/renderers/zelos/constants.ts index e9756112f4f..83d1e82ccfa 100644 --- a/packages/blockly/core/renderers/zelos/constants.ts +++ b/packages/blockly/core/renderers/zelos/constants.ts @@ -729,8 +729,8 @@ export class ConstantProvider extends BaseConstantProvider { `pt ${this.FIELD_TEXT_FONTFAMILY};`, `}`, - // Comments share .blocklyText with block labels; keep comment text normal. - `${selector} textarea.blocklyCommentText.blocklyTextarea {`, + // Comments. + `${selector} .blocklyCommentText {`, `font-weight: normal;`, `}`,