Skip to content

Commit

Permalink
Merge pull request #152 from jenny-s51/iss151
Browse files Browse the repository at this point in the history
Fix(TaskNode): set nameLabelClass attribute
  • Loading branch information
jeff-phillips-18 authored Feb 28, 2024
2 parents b8304d1 + 2065e22 commit 445b709
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/module/src/pipelines/components/nodes/TaskNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ const TaskNodeInner: React.FC<TaskNodeInnerProps> = observer(({
badgeTooltip,
badgePopoverProps,
badgePopoverParams,
nameLabelClass,
taskIconClass,
taskIcon,
taskIconTooltip,
Expand Down Expand Up @@ -298,7 +299,11 @@ const TaskNodeInner: React.FC<TaskNodeInnerProps> = observer(({
const { translateX, translateY } = getNodeScaleTranslation(element, nodeScale, scaleNode);

const nameLabel = (
<text ref={nameLabelRef} className={css(styles.topologyPipelinesPillText)} dominantBaseline="middle">
<text
ref={nameLabelRef}
className={css(nameLabelClass, styles.topologyPipelinesPillText)}
dominantBaseline="middle"
>
{label}
</text>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/module/src/pipelines/decorators/WhenDecorator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface WhenDecoratorProps {
width?: number;
/** Height of the when decorator */
height?: number;
/** Additional classes added to the label */
/** @deprecated Additional classes added to the label */
nameLabelClass?: string;
/** WhenStatus to depict */
status?: WhenStatus;
Expand Down

0 comments on commit 445b709

Please sign in to comment.