From d80fa2be288d0197096bd7f50cc2ffa3d0e80824 Mon Sep 17 00:00:00 2001 From: Kusuma04-dev Date: Tue, 17 Dec 2024 14:12:00 +0530 Subject: [PATCH] kie-issues#1718: DMN Editor extension generates SVG with missing font color (#2816) Co-authored-by: chinnamatli kusumalatha --- packages/dmn-editor/src/diagram/nodes/NodeStyle.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/dmn-editor/src/diagram/nodes/NodeStyle.ts b/packages/dmn-editor/src/diagram/nodes/NodeStyle.ts index 94a569a66e2..df72162b8b5 100644 --- a/packages/dmn-editor/src/diagram/nodes/NodeStyle.ts +++ b/packages/dmn-editor/src/diagram/nodes/NodeStyle.ts @@ -43,6 +43,7 @@ export interface DmnFontStyle { family?: string; size?: number; color: string; + fill: string; } export interface Color { @@ -169,6 +170,7 @@ export function getDmnFontStyle(args: { family: args.isEnabled ? args.dmnStyle?.["@_fontFamily"] : undefined, size: args.isEnabled ? args.dmnStyle?.["@_fontSize"] : undefined, color: fontColor, + fill: fontColor, }; } @@ -189,6 +191,7 @@ export function getFontCssProperties(dmnFontStyle?: DmnFontStyle): React.CSSProp textDecoration, fontSize: dmnFontStyle?.size ?? "16px", color: dmnFontStyle?.color ?? "black", + fill: dmnFontStyle?.fill ?? "black", lineHeight: "1.5em", // This needs to be em `em` otherwise `@visx/text` breaks when generating the SVG. }; }