mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-13 02:59:36 +02:00
MCC-1765: Added styling of neo class and removed override in drawRect
This commit is contained in:
@@ -48,10 +48,7 @@ export const drawRect = async (parent: SVGAElement, node: Node, options: RectOpt
|
|||||||
} else {
|
} else {
|
||||||
rect = shapeSvg.insert('rect', ':first-child');
|
rect = shapeSvg.insert('rect', ':first-child');
|
||||||
|
|
||||||
let rectClass = 'basic label-container';
|
const rectClass = 'basic label-container';
|
||||||
if (node.look === 'neo') {
|
|
||||||
rectClass += ' state-shadow-neo';
|
|
||||||
}
|
|
||||||
|
|
||||||
rect
|
rect
|
||||||
.attr('class', rectClass)
|
.attr('class', rectClass)
|
||||||
|
@@ -74,8 +74,8 @@ const getStyles = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
[data-look="neo"].node rect {
|
[data-look="neo"].node rect {
|
||||||
stroke: ${options.nodeBorder};
|
stroke: none;
|
||||||
stroke: red !important
|
filter: drop-shadow( 1px 2px 2px rgba(185,185,185,1.0) );
|
||||||
}
|
}
|
||||||
${userStyles}
|
${userStyles}
|
||||||
`;
|
`;
|
||||||
|
Reference in New Issue
Block a user