Skip to content

Commit 12fbc96

Browse files
fix: dark mode bug for legend
1 parent eca0fc4 commit 12fbc96

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

src/chart/graph/component/button/GraphChartLegendButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export const NeoGraphChartLegendButton = (props: GraphChartVisualizationProps) =
134134
padding: 0,
135135
marginTop: '0.2rem',
136136
fontWeight: 'bold',
137-
color: '#535a65',
137+
color: isDark ? '#ffffff' : '#535a65',
138138
}}
139139
>
140140
LEGEND

src/component/theme/Themes.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,24 @@ export const darkTheme = createTheme({
157157
},
158158
},
159159
},
160+
MuiPopover: {
161+
styleOverrides: {
162+
paper: {
163+
backgroundColor: '#1e1e1e',
164+
color: '#ffffff',
165+
},
166+
},
167+
},
168+
MuiListItemText: {
169+
styleOverrides: {
170+
primary: {
171+
color: '#ffffff',
172+
},
173+
secondary: {
174+
color: '#9ca3af',
175+
},
176+
},
177+
},
160178
} as any,
161179
breakpoints: {
162180
values: {

0 commit comments

Comments
 (0)