Merge pull request #1855 from bluewave-labs/feat/notification-modal
Implemented notification modal.
This commit is contained in:
6 files changed
+573
-38
No files matched your search
+104
-34
@@ -117,6 +117,33 @@ const baseTheme = (palette) => ({
|
||||
color: `${theme.palette.secondary.contrastText} !important`,
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
props: { variant: 'text', color: 'info' },
|
||||
style: {
|
||||
textDecoration: 'underline',
|
||||
color: theme.palette.text.primary,
|
||||
padding: 0,
|
||||
margin: 0,
|
||||
fontSize: typographyLevels.m,
|
||||
fontWeight: theme.typography.body2.fontWeight,
|
||||
backgroundColor: 'transparent',
|
||||
'&:hover': {
|
||||
backgroundColor: 'transparent',
|
||||
textDecoration: 'underline'
|
||||
},
|
||||
"&.Mui-disabled": {
|
||||
backgroundColor: theme.palette.secondary.main,
|
||||
color: theme.palette.primary.contrastText,
|
||||
"&.MuiButton-text": {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
},
|
||||
minWidth: 0,
|
||||
boxShadow: 'none',
|
||||
border: 'none'
|
||||
},
|
||||
},
|
||||
],
|
||||
height: 34,
|
||||
fontWeight: 400,
|
||||
@@ -328,35 +355,68 @@ const baseTheme = (palette) => ({
|
||||
},
|
||||
MuiTab: {
|
||||
styleOverrides: {
|
||||
root: ({ theme }) => ({
|
||||
fontSize: 13,
|
||||
color: theme.palette.tertiary.contrastText,
|
||||
backgroundColor: theme.palette.tertiary.main,
|
||||
textTransform: "none",
|
||||
minWidth: "fit-content",
|
||||
paddingY: theme.spacing(6),
|
||||
fontWeight: 400,
|
||||
borderBottom: "2px solid transparent",
|
||||
borderRight: `1px solid ${theme.palette.primary.lowContrast}`,
|
||||
"&:first-of-type": { borderTopLeftRadius: "8px" },
|
||||
"&:last-child": { borderTopRightRadius: "8px", borderRight: 0 },
|
||||
"&:focus-visible": {
|
||||
color: theme.palette.primary.contrastText,
|
||||
borderColor: theme.palette.tertiary.contrastText,
|
||||
borderRightColor: theme.palette.primary.lowContrast,
|
||||
},
|
||||
"&.Mui-selected": {
|
||||
backgroundColor: theme.palette.secondary.main,
|
||||
color: theme.palette.secondary.contrastText,
|
||||
borderColor: theme.palette.secondary.contrastText,
|
||||
borderRightColor: theme.palette.primary.lowContrast,
|
||||
},
|
||||
"&:hover": {
|
||||
borderColor: theme.palette.primary.lowContrast,
|
||||
},
|
||||
}),
|
||||
root: ({ theme }) => ({
|
||||
fontSize: theme.typography.fontSize - 1,
|
||||
color: theme.palette.tertiary.contrastText,
|
||||
backgroundColor: theme.palette.tertiary.main,
|
||||
textTransform: "none",
|
||||
minWidth: "fit-content",
|
||||
padding: `${theme.spacing(6)}px ${theme.spacing(4)}px`,
|
||||
fontWeight: 400,
|
||||
borderBottom: `${theme.shape.borderThick}px solid transparent`,
|
||||
borderRight: `${theme.shape.borderRadius / 2}px solid ${theme.palette.primary.lowContrast}`,
|
||||
"&:first-of-type": { borderTopLeftRadius: theme.shape.borderRadius * 4 },
|
||||
"&:last-child": { borderTopRightRadius: theme.shape.borderRadius * 4, borderRight: 0 },
|
||||
"&:focus-visible": {
|
||||
color: theme.palette.primary.contrastText,
|
||||
borderColor: theme.palette.tertiary.contrastText,
|
||||
borderRightColor: theme.palette.primary.lowContrast,
|
||||
},
|
||||
"&.Mui-selected": {
|
||||
backgroundColor: theme.palette.secondary.main,
|
||||
color: theme.palette.secondary.contrastText,
|
||||
borderColor: theme.palette.secondary.contrastText,
|
||||
borderRightColor: theme.palette.primary.lowContrast,
|
||||
},
|
||||
"&:hover": {
|
||||
borderColor: theme.palette.primary.lowContrast,
|
||||
},
|
||||
}),
|
||||
},
|
||||
},
|
||||
variants: [
|
||||
{
|
||||
props: { orientation: 'vertical' },
|
||||
style: ({ theme }) => ({
|
||||
alignItems: 'flex-start',
|
||||
padding: `${theme.spacing(1)}px ${theme.spacing(2)}px ${theme.spacing(1)}px ${theme.spacing(6)}px`,
|
||||
minHeight: theme.spacing(12),
|
||||
color: theme.palette.primary.contrastText,
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
border: 'none',
|
||||
borderBottom: 'none',
|
||||
borderRight: 'none',
|
||||
borderRadius: theme.shape.borderRadius * 3,
|
||||
margin: `${theme.spacing(1)}px ${theme.spacing(2)}px`,
|
||||
'&.Mui-selected': {
|
||||
color: theme.palette.primary.contrastText,
|
||||
backgroundColor: theme.palette.tertiary.main,
|
||||
opacity: 1,
|
||||
border: 'none',
|
||||
borderBottom: 'none',
|
||||
borderRight: 'none',
|
||||
borderRadius: theme.shape.borderRadius * 3,
|
||||
minHeight: theme.spacing(14)
|
||||
},
|
||||
'&:hover': {
|
||||
backgroundColor: theme.palette.tertiary.main,
|
||||
border: 'none',
|
||||
borderRadius: theme.shape.borderRadius * 3,
|
||||
minHeight: theme.spacing(14)
|
||||
}
|
||||
}),
|
||||
},
|
||||
],
|
||||
},
|
||||
MuiSvgIcon: {
|
||||
styleOverrides: {
|
||||
root: ({ theme }) => ({
|
||||
@@ -366,13 +426,23 @@ const baseTheme = (palette) => ({
|
||||
},
|
||||
MuiTabs: {
|
||||
styleOverrides: {
|
||||
root: ({ theme }) => ({
|
||||
"& .MuiTabs-indicator": {
|
||||
backgroundColor: theme.palette.tertiary.contrastText,
|
||||
},
|
||||
}),
|
||||
root: ({ theme }) => ({
|
||||
"& .MuiTabs-indicator": {
|
||||
backgroundColor: theme.palette.tertiary.contrastText,
|
||||
},
|
||||
}),
|
||||
},
|
||||
},
|
||||
variants: [
|
||||
{
|
||||
props: { orientation: 'vertical' },
|
||||
style: {
|
||||
"& .MuiTabs-indicator": {
|
||||
display: 'none',
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
MuiSwitch: {
|
||||
styleOverrides: {
|
||||
root: ({ theme }) => ({
|
||||
|
||||
Reference in new issue
Block a user