diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/rectWithTitle.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/rectWithTitle.ts index c83dbf69b2..25b9dd781c 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/rectWithTitle.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/rectWithTitle.ts @@ -134,6 +134,7 @@ export const rectWithTitle = async (parent: SVGElement, node: Node) => { innerLine = g.insert('line'); rect .attr('class', 'outer title-state') + .attr('style', nodeStyles) .attr('x', -bbox.width / 2 - halfPadding) .attr('y', -bbox.height / 2 - halfPadding) .attr('width', bbox.width + (node.padding || 0))