Skip to content

Commit 3dcd54c

Browse files
committed
adjust visibility of react flow background patterns
1 parent a665e99 commit 3dcd54c

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

src/extensions/react-flow/_react-flow_v12.scss

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -179,31 +179,27 @@ svg.react-flow__connectionline {
179179
pointer-events: none;
180180
background-color: $reactflow-background-color;
181181
border: solid 1px $eccgui-color-separation-divider;
182-
183-
pattern path {
184-
opacity: $eccgui-opacity-ghostly;
185-
stroke: #{eccgui-color-var("identity", "text", "300")};
186-
}
187182
}
188183

189184
.react-flow__background-pattern,
190-
.react-flow__background pattern path:first-child {
191-
opacity: $eccgui-opacity-ghostly;
192-
stroke: #{eccgui-color-var("identity", "text", "500")};
185+
.react-flow__background pattern *:first-child:not(.react-flow__background-pattern) {
186+
opacity: $eccgui-opacity-muted;
187+
stroke: $eccgui-color-separation-divider;
193188
}
194189

195190
.react-flow__background-pattern.dots,
196-
.react-flow__background pattern circle:first-child {
197-
opacity: $eccgui-opacity-muted;
198-
fill: #{eccgui-color-var("identity", "text", "700")};
191+
.react-flow__background pattern circle:first-child:not(.react-flow__background-pattern) {
192+
fill: #{eccgui-color-var("identity", "text", "500")};
199193
}
200194

201195
.react-flow__background-pattern.cross {
202-
stroke: #{eccgui-color-var("identity", "text", "300")};
196+
opacity: $eccgui-opacity-disabled;
197+
stroke: #{eccgui-color-var("identity", "text", "500")};
198+
stroke-width: 0.3;
203199
}
204200

205201
.react-flow__background-pattern.lines {
206-
stroke: #{eccgui-color-var("identity", "text", "300")};
202+
stroke-width: 0.4;
207203
}
208204

209205
.react-flow__attribution {

0 commit comments

Comments
 (0)