Skip to content

Commit e6a4f07

Browse files
committed
added dark mode for ax tree
1 parent f454891 commit e6a4f07

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

src/app/components/StateRoute/AxMap/axLinkControls.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const AxLinkControls = ({
4040
onChange={(e) => setOrientation(e.target.value)}
4141
value={orientation}
4242
>
43-
<option value='vertical'>vertical</option>
44-
<option value='horizontal'>horizontal</option>
43+
<option value='vertical'>Vertical</option>
44+
<option value='horizontal'>Horizontal</option>
4545
</select>
4646
</div>
4747

@@ -53,10 +53,10 @@ const AxLinkControls = ({
5353
onChange={(e) => setLinkType(e.target.value)}
5454
value={linkType}
5555
>
56-
<option value='diagonal'>diagonal</option>
57-
<option value='step'>step</option>
58-
<option value='curve'>curve</option>
59-
<option value='line'>line</option>
56+
<option value='diagonal'>Diagonal</option>
57+
<option value='step'>Step</option>
58+
<option value='curve'>Curve</option>
59+
<option value='line'>Line</option>
6060
</select>
6161
</div>
6262

src/app/styles/components/_ax.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
// Ax.tsx
2-
.axControls {
3-
display: flex;
4-
justify-content: space-evenly;
5-
}
6-
71
/* Container for the radio controls */
82
.accessibility-controls {
93
display: flex;

src/app/styles/components/_performanceVisx.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
display: flex;
33
align-items: center;
44
padding: 12px 16px;
5-
background-color: white;
5+
background-color: var(--bg-primary);
66
max-width: 1200px;
77
justify-content: space-around;
8-
border-bottom: 1px solid #e5e7eb;
8+
border-bottom: 1px solid var(--border-color);
99
}
1010

1111
.routesForm {
@@ -17,7 +17,7 @@
1717
#routes-dropdown {
1818
font-size: 14px;
1919
font-weight: 500;
20-
color: #4b5563;
20+
color: var(--text-secondary);
2121
user-select: none;
2222
white-space: nowrap;
2323
}
@@ -67,9 +67,9 @@
6767

6868
// bar graph background
6969
.perf-rect {
70-
fill: #f9fafb;
70+
fill: var(--bg-secondary);
7171
}
7272

7373
.bargraph-position {
74-
background-color: #f9fafb;
74+
background-color: var(--bg-secondary);
7575
}

0 commit comments

Comments
 (0)