Declared variants for the vertical version of tabs in the theme.
This commit is contained in:
1 parent
e76c3853f3
commit
5e730acd47
2 files changed
+40
-32
No files matched your search
@@ -182,39 +182,11 @@ const NotificationIntegrationModal = ({
|
|||||||
value={tabValue}
|
value={tabValue}
|
||||||
onChange={handleChangeTab}
|
onChange={handleChangeTab}
|
||||||
aria-label="Notification tabs"
|
aria-label="Notification tabs"
|
||||||
sx={{
|
|
||||||
backgroundColor: theme.palette.primary.main,
|
|
||||||
'& .MuiTab-root': {
|
|
||||||
alignItems: 'flex-start',
|
|
||||||
px: 2,
|
|
||||||
fontSize: '0.9rem',
|
|
||||||
color: theme.palette.primary.contrastText,
|
|
||||||
backgroundColor: theme.palette.primary.main,
|
|
||||||
border: 'none',
|
|
||||||
borderBottom: 'none',
|
|
||||||
borderRight: 'none',
|
|
||||||
'&.Mui-selected': {
|
|
||||||
color: theme.palette.primary.contrastText,
|
|
||||||
backgroundColor: theme.palette.tertiary.main, // Match the hover background color
|
|
||||||
opacity: 1,
|
|
||||||
border: 'none',
|
|
||||||
borderBottom: 'none',
|
|
||||||
borderRight: 'none'
|
|
||||||
},
|
|
||||||
'&:hover': {
|
|
||||||
backgroundColor: theme.palette.tertiary.main,
|
|
||||||
border: 'none'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'& .MuiTabs-indicator': {
|
|
||||||
backgroundColor: 'transparent'
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
<Tab label="Slack" />
|
<Tab label="Slack" orientation="vertical" />
|
||||||
<Tab label="Discord" />
|
<Tab label="Discord" orientation="vertical" />
|
||||||
<Tab label="Telegram" />
|
<Tab label="Telegram" orientation="vertical" />
|
||||||
<Tab label="Webhooks" />
|
<Tab label="Webhooks" orientation="vertical" />
|
||||||
</Tabs>
|
</Tabs>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
|
|||||||
@@ -356,6 +356,32 @@ const baseTheme = (palette) => ({
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
variants: [
|
||||||
|
{
|
||||||
|
props: { orientation: 'vertical' },
|
||||||
|
style: ({ theme }) => ({
|
||||||
|
alignItems: 'flex-start',
|
||||||
|
padding: theme.spacing(2),
|
||||||
|
color: theme.palette.primary.contrastText,
|
||||||
|
backgroundColor: theme.palette.primary.main,
|
||||||
|
border: 'none',
|
||||||
|
borderBottom: 'none',
|
||||||
|
borderRight: 'none',
|
||||||
|
'&.Mui-selected': {
|
||||||
|
color: theme.palette.primary.contrastText,
|
||||||
|
backgroundColor: theme.palette.tertiary.main,
|
||||||
|
opacity: 1,
|
||||||
|
border: 'none',
|
||||||
|
borderBottom: 'none',
|
||||||
|
borderRight: 'none'
|
||||||
|
},
|
||||||
|
'&:hover': {
|
||||||
|
backgroundColor: theme.palette.tertiary.main,
|
||||||
|
border: 'none'
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
MuiSvgIcon: {
|
MuiSvgIcon: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
@@ -372,6 +398,16 @@ const baseTheme = (palette) => ({
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
variants: [
|
||||||
|
{
|
||||||
|
props: { orientation: 'vertical' },
|
||||||
|
style: {
|
||||||
|
"& .MuiTabs-indicator": {
|
||||||
|
display: 'none',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
MuiSwitch: {
|
MuiSwitch: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
|
|||||||
Reference in new issue
Block a user