-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Labels
good first issueissue: feature requestDescribes a new feature and why it should be addedDescribes a new feature and why it should be added
Description
Check for duplicates
- I have searched for similar issues before opening a new one.
Problem
There is an inconsistency in font-weight handling between block comments and workspace comments in the Zelos renderer.
- Block comments explicitly apply
font-weight: normalinconstants.ts. - Workspace comments do not, so they inherit the theme’s bold font weight (same as block labels).
This creates a visual mismatch: block comments render in a lighter weight, while workspace comments appear bold.
Request
Make font-weight handling for comments consistent. Possible solutions:
- Apply
font-weight: normalto workspace comments too, e.g.:
`${selector} blocklyCommentText blocklyTextarea {`
` font-weight: normal;` // Both workspace / block comments hold these classes, unlike .blocklyTextInputBubble
`}`- Extend the fontStyle theme option to allow separate weights for block labels and comments:
const fontStyle = {
family: 'Georgia, serif',
blockWeight: '600',
textWeight: '400',
size: 12
}Alternatives considered
- Adding a single
font-weight: normalrule to workspace comments (simplest and most consistent). - Allowing finer-grained configuration (e.g., multiple weights) - possible, but likely unnecessary unless there’s strong demand.
Additional context
No response
Metadata
Metadata
Assignees
Labels
good first issueissue: feature requestDescribes a new feature and why it should be addedDescribes a new feature and why it should be added
