change tab background, update hover settings and modify borderRadius
This commit is contained in:
1 parent
11b4039706
commit
63c187ac4e
1 file changed
+14
-4
@@ -69,6 +69,20 @@ const Account = ({ open = "profile" }) => {
|
|||||||
<TabList
|
<TabList
|
||||||
onChange={handleTabChange}
|
onChange={handleTabChange}
|
||||||
aria-label="account tabs"
|
aria-label="account tabs"
|
||||||
|
sx={{
|
||||||
|
display: 'inline-flex',
|
||||||
|
border: 1,
|
||||||
|
borderColor: theme.palette.primary.lowContrast,
|
||||||
|
borderRadius: `${theme.shape.borderRadius}px ${theme.shape.borderRadius}px 0 0`,
|
||||||
|
'& .MuiTab-root': {
|
||||||
|
backgroundColor: theme.palette.primary.main,
|
||||||
|
height: '34px',
|
||||||
|
borderColor: theme.palette.primary.lowContrast,
|
||||||
|
},
|
||||||
|
'& .MuiTab-root.Mui-selected': {
|
||||||
|
borderRadius: 0,
|
||||||
|
},
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{tabList.map((label, index) => (
|
{tabList.map((label, index) => (
|
||||||
<Tab
|
<Tab
|
||||||
@@ -78,10 +92,6 @@ const Account = ({ open = "profile" }) => {
|
|||||||
onKeyDown={handleKeyDown}
|
onKeyDown={handleKeyDown}
|
||||||
onFocus={() => handleFocus(label.toLowerCase())}
|
onFocus={() => handleFocus(label.toLowerCase())}
|
||||||
tabIndex={index}
|
tabIndex={index}
|
||||||
sx={{
|
|
||||||
minHeight: "34px",
|
|
||||||
height: "34px",
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</TabList>
|
</TabList>
|
||||||
|
|||||||
Reference in new issue
Block a user