@@ -4,6 +4,7 @@ import { Box, Dialog, IconButton, Paper, Typography } from '../../base';
4
4
import { ContainedButton , OutlinedButton , TextButton } from '../../base/Button/Button' ;
5
5
import { iconLarge , iconMedium } from '../../constants/iconsSizes' ;
6
6
import { CloseIcon , InfoCircleIcon } from '../../icons' ;
7
+ import { darkModalGradient , lightModalGradient } from '../../theme/colors/colors' ;
7
8
import { CustomTooltip } from '../CustomTooltip' ;
8
9
9
10
interface ModalProps extends DialogProps {
@@ -54,8 +55,8 @@ const StyledDialog = styled(Dialog)`
54
55
}
55
56
` ;
56
57
57
- export const ModalStyledHeader = styled ( 'div' ) ( ( ) => ( {
58
- background : 'linear-gradient(90deg, #3B687B 0%, #507D90 100%)' ,
58
+ export const ModalStyledHeader = styled ( 'div' ) ( ( { theme } ) => ( {
59
+ background : theme . palette . mode === 'light' ? lightModalGradient . header : darkModalGradient . header ,
59
60
color : '#eee' ,
60
61
display : 'flex' ,
61
62
justifyContent : 'space-between' ,
@@ -108,15 +109,20 @@ const StyledFooter = styled('div', {
108
109
shouldForwardProp : ( prop ) => prop !== 'variant'
109
110
} ) < ModalFooterProps > ( ( { theme, variant, hasHelpText } ) => ( {
110
111
background :
111
- variant == 'filled' ? 'linear-gradient(90deg, #3B687B 0%, #507D90 100%)' : 'transparent' ,
112
+ variant === 'filled'
113
+ ? theme . palette . mode === 'light'
114
+ ? lightModalGradient . fotter
115
+ : darkModalGradient . fotter
116
+ : 'transparent' ,
112
117
display : 'flex' ,
113
118
alignItems : 'center' ,
114
119
justifyContent : hasHelpText ? 'space-between' : 'end' ,
115
120
padding : '1rem' ,
116
121
gap : '1rem' ,
117
122
118
123
'&& .InfoCircleIcon' : {
119
- color : variant == 'filled' ? theme . palette . common . white : theme . palette . background . info ?. default
124
+ color :
125
+ variant === 'filled' ? theme . palette . common . white : theme . palette . background . info ?. default
120
126
}
121
127
} ) ) ;
122
128
0 commit comments