mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-10 17:49:40 +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 {
|
||||
rect = shapeSvg.insert('rect', ':first-child');
|
||||
|
||||
let rectClass = 'basic label-container';
|
||||
if (node.look === 'neo') {
|
||||
rectClass += ' state-shadow-neo';
|
||||
}
|
||||
const rectClass = 'basic label-container';
|
||||
|
||||
rect
|
||||
.attr('class', rectClass)
|
||||
|
@@ -74,8 +74,8 @@ const getStyles = (
|
||||
}
|
||||
|
||||
[data-look="neo"].node rect {
|
||||
stroke: ${options.nodeBorder};
|
||||
stroke: red !important
|
||||
stroke: none;
|
||||
filter: drop-shadow( 1px 2px 2px rgba(185,185,185,1.0) );
|
||||
}
|
||||
${userStyles}
|
||||
`;
|
||||
|
Reference in New Issue
Block a user