Skip to content

Commit 7ed9be2

Browse files
authored
Fix the tree background color for the cities demo (#84)
* fix the tree background color for the cities demo, if browser uses prefers-color-scheme: dark * set the focused node text to black
1 parent bff7f42 commit 7ed9be2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/showcase/styles/cities.module.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,5 +213,14 @@
213213
.mobileWarning {
214214
display: block;
215215
}
216-
}
216+
}
217217

218+
@media (prefers-color-scheme: dark) {
219+
.tree {
220+
background: #101010;
221+
}
222+
223+
.row:focus-visible .node {
224+
color: black;
225+
}
226+
}

0 commit comments

Comments
 (0)