Skip to content

Commit a8e276a

Browse files
authored
Merge pull request #1063 from writer/AB-117
feat(ui): improve blueprint connector design - AB-117
2 parents ebc2d63 + 574482e commit a8e276a

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/ui/src/components/blueprints/BlueprintsBlueprint.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ function calculateArrow(
578578
y1,
579579
x2,
580580
y2,
581-
color: getComputedStyle(fromEl).backgroundColor,
581+
color: getComputedStyle(fromEl).outlineColor,
582582
fromNodeId,
583583
fromOutId,
584584
toNodeId,

src/ui/src/components/blueprints/abstract/BlueprintsNodeOutput.vue

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,26 @@ defineEmits({
5353
height: 16px;
5454
width: 16px;
5555
border-radius: 50%;
56-
border: 1px solid var(--builderBackgroundColor);
5756
cursor: pointer;
57+
58+
/* we are using outline instead of background to make the dot looks smaller */
59+
outline: 4px var(--builderBackgroundColor) solid;
60+
outline-offset: -8px;
5861
}
5962
6063
.BlueprintsNodeOutput__ball.success {
61-
background: var(--wdsColorGreen5);
64+
outline-color: var(--wdsColorGreen5);
6265
}
6366
6467
.BlueprintsNodeOutput__ball.error {
65-
background: var(--wdsColorOrange5);
68+
outline-color: var(--wdsColorOrange5);
6669
}
6770
6871
.BlueprintsNodeOutput__ball.dynamic {
69-
background: var(--wdsColorPurple4);
72+
outline-color: var(--wdsColorPurple4);
7073
}
7174
7275
.BlueprintsNodeOutput__ball.branching {
73-
background: var(--wdsColorPurple4);
76+
outline-color: var(--wdsColorPurple4);
7477
}
7578
</style>

0 commit comments

Comments
 (0)