diff --git a/desktop/plugins/public/ui-debugger/components/Visualization2D.tsx b/desktop/plugins/public/ui-debugger/components/Visualization2D.tsx index e0e388a35..c4acc75dd 100644 --- a/desktop/plugins/public/ui-debugger/components/Visualization2D.tsx +++ b/desktop/plugins/public/ui-debugger/components/Visualization2D.tsx @@ -154,10 +154,8 @@ function Visualization2DNode({ top: toPx(bounds.y), width: toPx(bounds.width), height: toPx(bounds.height), - opacity: isSelected || isHovered ? 0.5 : 1, + opacity: isSelected ? 0.5 : 1, backgroundColor: isSelected - ? theme.primaryColor - : isHovered ? theme.selectionBackgroundColor : 'transparent', }} @@ -179,7 +177,7 @@ function Visualization2DNode({ onSelectNode(hoveredNode); } }}> - + {snapshot && ( ((props) => ({ +const NodeBorder = styled.div<{tags: Tag[]; hovered: boolean}>((props) => ({ position: 'absolute', top: 0, left: 0, bottom: 0, right: 0, - borderWidth: '1px', + borderWidth: props.hovered ? '2px' : '1px', borderStyle: 'solid', color: 'transparent', borderColor: props.tags.includes('Declarative')