Skip to content

Commit d4ea3c8

Browse files
committed
Adjust illustration
1 parent bb22174 commit d4ea3c8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/docs/src/components/graph.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,13 @@ export default ({ width = 32, height = 9, scale = 32 }) => {
176176
)
177177
}
178178

179-
const logoColor = get(theme.colors, `${get(colors, get(state, '2.0') || 1)}`)
179+
const logo = {}
180+
logo.key = get(colors, get(state, '2.0'))
181+
if (logo.key !== 'background') {
182+
logo.color = get(theme.colors, logo.key)
183+
} else {
184+
logo.color = get(theme.colors, 'text')
185+
}
180186

181187
return (
182188
<svg
@@ -206,7 +212,7 @@ export default ({ width = 32, height = 9, scale = 32 }) => {
206212
))
207213
)}
208214
<g transform="translate(0 6)">
209-
<Logo size={2} color={logoColor} />
215+
<Logo size={2} color={logo.color} />
210216
</g>
211217
</svg>
212218
)

0 commit comments

Comments
 (0)