@principal-ai/principal-view-react 0.14.34 → 0.14.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/nodes/CustomNode.tsx +3 -3
package/package.json
CHANGED
package/src/nodes/CustomNode.tsx
CHANGED
|
@@ -579,7 +579,7 @@ export const CustomNode: React.FC<NodeProps<Node<CustomNodeData>>> = (props) =>
|
|
|
579
579
|
const borderStyle = status === 'draft' ? 'dotted' : status === 'approved' ? 'dashed' : 'solid';
|
|
580
580
|
const baseStyles = {
|
|
581
581
|
padding: '12px 16px',
|
|
582
|
-
backgroundColor: isGroup ? 'rgba(255, 255, 255, 0.7)' :
|
|
582
|
+
backgroundColor: isGroup ? 'rgba(255, 255, 255, 0.7)' : fillColor,
|
|
583
583
|
color: '#000',
|
|
584
584
|
border: `2px ${borderStyle} ${hasViolations ? '#D0021B' : strokeColor}`,
|
|
585
585
|
fontSize: theme.fontSizes[0],
|
|
@@ -696,7 +696,7 @@ export const CustomNode: React.FC<NodeProps<Node<CustomNodeData>>> = (props) =>
|
|
|
696
696
|
right: hexagonBorderWidth,
|
|
697
697
|
bottom: hexagonBorderWidth,
|
|
698
698
|
clipPath: hexagonClipPath,
|
|
699
|
-
backgroundColor:
|
|
699
|
+
backgroundColor: fillColor,
|
|
700
700
|
color: '#000',
|
|
701
701
|
display: 'flex',
|
|
702
702
|
flexDirection: 'column',
|
|
@@ -742,7 +742,7 @@ export const CustomNode: React.FC<NodeProps<Node<CustomNodeData>>> = (props) =>
|
|
|
742
742
|
right: diamondBorderWidth,
|
|
743
743
|
bottom: diamondBorderWidth,
|
|
744
744
|
clipPath: diamondClipPath,
|
|
745
|
-
backgroundColor:
|
|
745
|
+
backgroundColor: fillColor,
|
|
746
746
|
color: '#000',
|
|
747
747
|
display: 'flex',
|
|
748
748
|
flexDirection: 'column',
|