Skip to content

Commit ae011f2

Browse files
committed
fix: update markers with correct styles
1 parent a215265 commit ae011f2

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

src/components/graph/marker/Marker.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export const Marker = (props: MarkerProps) => {
1919
props,
2020
);
2121

22+
const color = () => _props.color ?? "var(--xy-edge-stroke)";
23+
2224
return (
2325
<marker
2426
class="solid-flow__arrowhead"
@@ -35,9 +37,9 @@ export const Marker = (props: MarkerProps) => {
3537
when={_props.type === "arrow"}
3638
fallback={
3739
<polyline
38-
class="arrow"
39-
stroke={_props.color ?? "--xy-edge-stroke"}
40-
fill={_props.color ?? "yellow"}
40+
class="arrowclosed"
41+
stroke={color()}
42+
fill={color()}
4143
stroke-linecap="round"
4244
stroke-linejoin="round"
4345
stroke-width={_props.strokeWidth}
@@ -46,8 +48,8 @@ export const Marker = (props: MarkerProps) => {
4648
}
4749
>
4850
<polyline
49-
class="arrowclosed"
50-
stroke={_props.color ?? "--xy-edge-stroke"}
51+
class="arrow"
52+
stroke={color()}
5153
fill="none"
5254
stroke-linecap="round"
5355
stroke-linejoin="round"

src/components/graph/node/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
);
7676
}
7777

78-
// TODO: Verify this class
78+
/* TODO: Verify this class */
7979
&.parent {
8080
background-color: rgba(220, 220, 255, 0.4);
8181
}

tsup.config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ const generateSolidPresetOptions = (watching: boolean): preset.PresetOptions =>
99
dev_entry: false,
1010
server_entry: false,
1111
},
12-
{
13-
name: "styles",
14-
entry: "src/styles/base.css",
15-
dev_entry: false,
16-
server_entry: false,
17-
},
1812
{
1913
name: "styles",
2014
entry: "src/styles/style.css",

0 commit comments

Comments
 (0)