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 authored and GitHub committed 2025-02-06 10:17:54 -08:00
commit e96e778e9f
2 files changed
+9 -5

No files matched your search

-5
View File
@@ -73,11 +73,6 @@ const Account = ({ open = "profile" }) => {
<TabList <TabList
onChange={handleTabChange} onChange={handleTabChange}
aria-label="account tabs" aria-label="account tabs"
sx={{
"& .MuiTabs-indicator": {
backgroundColor: theme.palette.tertiary.contrastText,
},
}}
> >
{tabList.map((label, index) => ( {tabList.map((label, index) => (
<Tab <Tab
+9
View File
@@ -358,6 +358,15 @@ const baseTheme = (palette) => ({
}), }),
}, },
}, },
MuiTabs: {
styleOverrides: {
root: ({ theme }) => ({
"& .MuiTabs-indicator": {
backgroundColor: theme.palette.tertiary.contrastText,
},
}),
},
},
}, },
shape: { shape: {
borderRadius: 2, borderRadius: 2,