@@ -4,6 +4,7 @@ import { Box, Dialog, IconButton, Paper, Typography } from '../../base';
44import { ContainedButton , OutlinedButton , TextButton } from '../../base/Button/Button' ;
55import { iconLarge , iconMedium } from '../../constants/iconsSizes' ;
66import { CloseIcon , InfoCircleIcon } from '../../icons' ;
7+ import { darkModalGradient , lightModalGradient } from '../../theme/colors/colors' ;
78import { CustomTooltip } from '../CustomTooltip' ;
89
910interface ModalProps extends DialogProps {
@@ -54,8 +55,8 @@ const StyledDialog = styled(Dialog)`
5455 }
5556` ;
5657
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 ,
5960 color : '#eee' ,
6061 display : 'flex' ,
6162 justifyContent : 'space-between' ,
@@ -108,15 +109,20 @@ const StyledFooter = styled('div', {
108109 shouldForwardProp : ( prop ) => prop !== 'variant'
109110} ) < ModalFooterProps > ( ( { theme, variant, hasHelpText } ) => ( {
110111 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' ,
112117 display : 'flex' ,
113118 alignItems : 'center' ,
114119 justifyContent : hasHelpText ? 'space-between' : 'end' ,
115120 padding : '1rem' ,
116121 gap : '1rem' ,
117122
118123 '&& .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
120126 }
121127} ) ) ;
122128
0 commit comments