Skip to content

Commit de035bc

Browse files
authored
Merge pull request #3312 from Northeastern-Electric-Racing/3211-finance-menu---tabs-should-be-legible-in-light-mode
3211 finance menu tabs should be legible in light mode
2 parents eec34f2 + bace413 commit de035bc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/frontend/src/components/Tabs.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AppBar, Tab, Tabs as MUITabs, Box } from '@mui/material';
1+
import { AppBar, Tab, Tabs as MUITabs, Box, useTheme } from '@mui/material';
22
import React from 'react';
33

44
export interface TabData {
@@ -21,6 +21,8 @@ const Tabs = ({
2121
setTabValue(newValue);
2222
};
2323

24+
const theme = useTheme();
25+
2426
return (
2527
<>
2628
<AppBar
@@ -47,7 +49,8 @@ const Tabs = ({
4749
sx={{
4850
fontWeight: 700,
4951
pointerEvents: tabs.length === 1 ? 'none' : 'auto',
50-
borderRadius: greyscale ? '8px 8px 0 0' : 0
52+
borderRadius: greyscale ? '8px 8px 0 0' : 0,
53+
color: greyscale ? theme.palette.text.primary : undefined
5154
}}
5255
/>
5356
))}

0 commit comments

Comments
 (0)