File tree Expand file tree Collapse file tree 3 files changed +20
-6
lines changed
src/custom/CatalogFilterSection Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { useCallback, useState } from 'react';
4
4
import { Box , Drawer , Typography } from '../../base' ;
5
5
import { CloseIcon } from '../../icons' ;
6
6
import { darkTeal } from '../../theme' ;
7
- import { SLIGHT_BLUE } from '../../theme/colors/colors' ;
7
+ import { darkModalGradient , lightModalGradient } from '../../theme/colors/colors' ;
8
8
import { CloseBtn } from '../Modal' ;
9
9
import CatalogFilterSidebarState from './CatalogFilterSidebarState' ;
10
10
import {
@@ -152,7 +152,15 @@ const CatalogFilterSidebar: React.FC<CatalogFilterSidebarProps> = ({
152
152
styleProps = { appliedStyleProps }
153
153
/>
154
154
</ Box >
155
- < Box sx = { { backgroundColor : SLIGHT_BLUE , height : '5vh' } } />
155
+ < Box
156
+ sx = { {
157
+ background :
158
+ theme . palette . mode === 'light'
159
+ ? lightModalGradient . fotter
160
+ : darkModalGradient . fotter ,
161
+ height : '5vh'
162
+ } }
163
+ />
156
164
</ Box >
157
165
</ Drawer >
158
166
</ FilterDrawerDiv >
Original file line number Diff line number Diff line change @@ -62,7 +62,13 @@ const FilterSection: React.FC<FilterSectionProps> = ({
62
62
backgroundColor : styleProps . sectionTitleBackgroundColor
63
63
} }
64
64
>
65
- < Typography variant = "h6" fontWeight = "bold" fontFamily = { styleProps . fontFamily } >
65
+ < Typography
66
+ sx = { {
67
+ fontSize : '1rem'
68
+ } }
69
+ fontWeight = "bold"
70
+ fontFamily = { styleProps . fontFamily }
71
+ >
66
72
{ ( sectionDisplayName || filterKey ) . toUpperCase ( ) }
67
73
</ Typography >
68
74
{ openSections [ filterKey ] ? < ExpandLessIcon /> : < ExpandMoreIcon /> }
Original file line number Diff line number Diff line change 1
1
import { styled } from '@mui/material/styles' ;
2
2
import { Box , Button , ListItemButton } from '../../base' ;
3
- import { SLIGHT_BLUE } from '../../theme/colors/colors' ;
3
+ import { darkModalGradient , lightModalGradient } from '../../theme/colors/colors' ;
4
4
import { StyleProps } from './CatalogFilterSidebar' ;
5
5
6
6
export const FiltersCardDiv = styled ( Box ) < { styleProps : StyleProps } > ( ( { styleProps } ) => ( {
@@ -46,12 +46,12 @@ export const FilterButton = styled(Button)(({ theme }) => ({
46
46
}
47
47
} ) ) ;
48
48
49
- export const FiltersDrawerHeader = styled ( Box ) ( ( ) => ( {
49
+ export const FiltersDrawerHeader = styled ( Box ) ( ( { theme } ) => ( {
50
50
display : 'flex' ,
51
51
justifyContent : 'space-between' ,
52
52
alignItems : 'center' ,
53
53
padding : '0.5rem 1rem' ,
54
- backgroundColor : SLIGHT_BLUE ,
54
+ background : theme . palette . mode === 'light' ? lightModalGradient . header : darkModalGradient . header ,
55
55
height : '10vh'
56
56
} ) ) ;
57
57
You can’t perform that action at this time.
0 commit comments