tab indicator default color changed to ff00c3

This commit is contained in:
AmitChauhan63390
2024-11-24 01:10:22 +05:30
parent f71822f844
commit e9e9070fe2

View File

@@ -43,6 +43,13 @@ export const MainMenu = ({ value = 'recordings', handleChangeContent }: MainMenu
value={value} value={value}
onChange={handleChange} onChange={handleChange}
orientation="vertical" orientation="vertical"
TabIndicatorProps={{
style: {
backgroundColor: '#ff00c3', // Set the custom color for the indicator here
width: '2px', // Ensure the indicator width is 2px as per your requirement
right: 0, // Position it on the right if needed
},
}}
sx={{ sx={{
alignItems: 'flex-start', alignItems: 'flex-start',
'& .MuiTab-root': { '& .MuiTab-root': {
@@ -54,6 +61,10 @@ export const MainMenu = ({ value = 'recordings', handleChangeContent }: MainMenu
'&.Mui-selected': { '&.Mui-selected': {
color: selectedPink, // Darker pink for selected tab color: selectedPink, // Darker pink for selected tab
}, },
'& .MuiTabs-indicator': {
backgroundColor: '#ff00c3', // Custom color for the indicator
},
}, },
}} }}
> >
@@ -62,24 +73,28 @@ export const MainMenu = ({ value = 'recordings', handleChangeContent }: MainMenu
label="Robots" label="Robots"
icon={<AutoAwesome />} icon={<AutoAwesome />}
iconPosition="start" iconPosition="start"
/> />
<Tab <Tab
value="runs" value="runs"
label="Runs" label="Runs"
icon={<FormatListBulleted />} icon={<FormatListBulleted />}
iconPosition="start" iconPosition="start"
/> />
<Tab <Tab
value="proxy" value="proxy"
label="Proxy" label="Proxy"
icon={<Usb />} icon={<Usb />}
iconPosition="start" iconPosition="start"
/> />
<Tab <Tab
value="apikey" value="apikey"
label="API Key" label="API Key"
icon={<VpnKey />} icon={<VpnKey />}
iconPosition="start" iconPosition="start"
/> />
</Tabs> </Tabs>
<hr /> <hr />