diff --git a/web/src/components/AutomationDAG/DAGNode.tsx b/web/src/components/AutomationDAG/DAGNode.tsx index 0e88784..0c0f9ce 100644 --- a/web/src/components/AutomationDAG/DAGNode.tsx +++ b/web/src/components/AutomationDAG/DAGNode.tsx @@ -9,6 +9,7 @@ export interface NodeProp extends Node { isOpen?: boolean; onXClick?: () => void; onOpenClick?: () => void; + topColor?: 'red' | 'green' | 'blue' | 'none'; } export default ({ loc: [x,y], @@ -18,9 +19,10 @@ export default ({ onXClick=() => {}, onOpenClick=() => {}, isOpen=false, + topColor='none', }: NodeProp) =>
-
+
X
diff --git a/web/src/styles/components/AutomationDAG.scss b/web/src/styles/components/AutomationDAG.scss index f8bfc7c..be23c74 100644 --- a/web/src/styles/components/AutomationDAG.scss +++ b/web/src/styles/components/AutomationDAG.scss @@ -32,6 +32,23 @@ flex-direction: row; flex: 1; + &.top-color { + &.red { + border-top-color: adjust-color($color: $secondary, $red: 125); + } + &.blue { + border-top-color: adjust-color($color: $secondary, $blue: 125); + } + &.green { + border-top-color: adjust-color($color: $secondary, $green: 125); + } + + border-top-width: 1px; + border-top-style: solid; + border-top-left-radius: 10px; + border-top-right-radius: 10px; + } + &-text { flex: 2; display: flex;