Merge pull request #1703 from bluewave-labs/fix/fe/tab-styles

fix: move tab styles to theme so they apply globally
This commit is contained in:
Alexander Holliday
2025-02-06 10:17:54 -08:00
committed by GitHub
2 changed files with 9 additions and 5 deletions
-5
View File
@@ -73,11 +73,6 @@ const Account = ({ open = "profile" }) => {
<TabList
onChange={handleTabChange}
aria-label="account tabs"
sx={{
"& .MuiTabs-indicator": {
backgroundColor: theme.palette.tertiary.contrastText,
},
}}
>
{tabList.map((label, index) => (
<Tab
+9
View File
@@ -358,6 +358,15 @@ const baseTheme = (palette) => ({
}),
},
},
MuiTabs: {
styleOverrides: {
root: ({ theme }) => ({
"& .MuiTabs-indicator": {
backgroundColor: theme.palette.tertiary.contrastText,
},
}),
},
},
},
shape: {
borderRadius: 2,