@@ -3,6 +3,7 @@ import { useTheme } from '@mui/material/styles';
33import { useCallback , useState } from 'react' ;
44import { Box , Drawer , Typography } from '../../base' ;
55import { CloseIcon } from '../../icons' ;
6+ import { darkTeal } from '../../theme' ;
67import { CloseBtn } from '../Modal' ;
78import CatalogFilterSidebarState from './CatalogFilterSidebarState' ;
89import {
@@ -69,8 +70,12 @@ const CatalogFilterSidebar: React.FC<CatalogFilterSidebarProps> = ({
6970 } , [ ] ) ;
7071
7172 const styleProps : StyleProps = {
72- backgroundColor : theme . palette . background . default ,
73- sectionTitleBackgroundColor : theme . palette . background . surfaces
73+ backgroundColor :
74+ theme . palette . mode === 'light'
75+ ? theme . palette . background . default
76+ : theme . palette . background . secondary ,
77+ sectionTitleBackgroundColor :
78+ theme . palette . mode === 'light' ? theme . palette . background . surfaces : darkTeal . main
7479 } ;
7580
7681 return (
@@ -89,7 +94,13 @@ const CatalogFilterSidebar: React.FC<CatalogFilterSidebarProps> = ({
8994 < FilterText > Filters</ FilterText >
9095 </ FilterButton >
9196
92- < Drawer anchor = "bottom" open = { openDrawer } variant = "temporary" onClose = { handleDrawerClose } >
97+ < Drawer
98+ anchor = "bottom"
99+ open = { openDrawer }
100+ variant = "temporary"
101+ onClose = { handleDrawerClose }
102+ style = { { zIndex : '1399' } }
103+ >
93104 < Box sx = { { overflowY : 'hidden' , height : '90vh' } } >
94105 < FiltersDrawerHeader >
95106 < Typography variant = "h6" sx = { { color : theme . palette . text . default } } component = "div" >
0 commit comments