@@ -9,6 +9,7 @@ import { Paper } from '../base/Paper';
9
9
import { Select } from '../base/Select' ;
10
10
import { FilterIcon } from '../icons' ;
11
11
import { useTheme } from '../theme' ;
12
+ import { SLIGHT_BLUE } from '../theme/colors/colors' ;
12
13
import PopperListener from './PopperListener' ;
13
14
import { TooltipIcon } from './TooltipIconButton' ;
14
15
@@ -40,8 +41,7 @@ function UniversalFilter({
40
41
const [ open , setOpen ] = React . useState ( false ) ;
41
42
42
43
const theme = useTheme ( ) ;
43
- const muiTheme = useTheme ( ) ;
44
- const isMobile = useMediaQuery ( muiTheme . breakpoints . down ( 'sm' ) ) ;
44
+ const isMobile = useMediaQuery ( theme . breakpoints . down ( 'sm' ) ) ;
45
45
46
46
const handleClick = ( event : React . MouseEvent < HTMLElement > ) => {
47
47
setAnchorEl ( event . currentTarget ) ;
@@ -70,13 +70,13 @@ function UniversalFilter({
70
70
< div >
71
71
< div
72
72
style = { {
73
- backgroundColor : '#507d91' ,
73
+ backgroundColor : SLIGHT_BLUE ,
74
74
padding : '0.75rem 1rem' ,
75
75
margin : '-1rem -1rem 1rem -1rem' ,
76
76
display : 'flex' ,
77
77
justifyContent : 'space-between' ,
78
78
alignItems : 'center' ,
79
- color : 'white'
79
+ color : theme . palette . text . primary
80
80
} }
81
81
>
82
82
< h3 > Filters: </ h3 >
@@ -155,7 +155,10 @@ function UniversalFilter({
155
155
open = { open }
156
156
onClose = { handleClose }
157
157
PaperProps = { {
158
- style : { padding : '0 1rem 1rem 1rem' }
158
+ style : {
159
+ padding : '0 1rem 1rem 1rem' ,
160
+ backgroundColor : theme . palette . background . surfaces
161
+ }
159
162
} }
160
163
>
161
164
{ renderFilterContent ( ) }
0 commit comments