Skip to content

Comments

feat: Variable Font Size for Flex Nodes#1832

Open
camielvs wants to merge 1 commit into02-18-feat_lock_flex_nodesfrom
02-20-feat_variable_font_size_for_flex_nodes
Open

feat: Variable Font Size for Flex Nodes#1832
camielvs wants to merge 1 commit into02-18-feat_lock_flex_nodesfrom
02-20-feat_variable_font_size_for_flex_nodes

Conversation

@camielvs
Copy link
Collaborator

@camielvs camielvs commented Feb 20, 2026

Description

Allows both the title and body text of a Flex Node to be customizable via a slider in the context panel.

Related Issue and Pull requests

Type of Change

  • New feature

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

image.png

image.png

Test Instructions

  • Edit a sticky note via the context panel. Confirm you can change the font size via a new popover above the edit box. Sticky Note should update in real time.

Additional Comments

@camielvs camielvs force-pushed the 02-20-feat_variable_font_size_for_flex_nodes branch from fabafff to 21c4bc8 Compare February 21, 2026 00:40
@camielvs camielvs marked this pull request as ready for review February 21, 2026 00:43
@camielvs camielvs requested a review from a team as a code owner February 21, 2026 00:43
Comment on lines +118 to +156
const updatedSubgraphSpec = updateFlexNodeInComponentSpec(
currentSubgraphSpec,
{
...flexNode,
properties: {
...properties,
titleFontSize: newSize,
},
},
);

const newRootSpec = updateSubgraphSpec(
componentSpec,
currentSubgraphPath,
updatedSubgraphSpec,
);

setComponentSpec(newRootSpec);
};

const handleContentFontSizeChange = (newSize: number) => {
const updatedSubgraphSpec = updateFlexNodeInComponentSpec(
currentSubgraphSpec,
{
...flexNode,
properties: {
...properties,
contentFontSize: newSize,
},
},
);

const newRootSpec = updateSubgraphSpec(
componentSpec,
currentSubgraphPath,
updatedSubgraphSpec,
);

setComponentSpec(newRootSpec);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've standardized this DRY logic in the next PR.

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