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:
2 files changed
+9
-5
No files matched your search
@@ -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
|
||||||
|
|||||||
@@ -358,6 +358,15 @@ const baseTheme = (palette) => ({
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
MuiTabs: {
|
||||||
|
styleOverrides: {
|
||||||
|
root: ({ theme }) => ({
|
||||||
|
"& .MuiTabs-indicator": {
|
||||||
|
backgroundColor: theme.palette.tertiary.contrastText,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
shape: {
|
shape: {
|
||||||
borderRadius: 2,
|
borderRadius: 2,
|
||||||
|
|||||||
Reference in new issue
Block a user