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';
44import { Box , Drawer , Typography } from '../../base' ;
55import { CloseIcon } from '../../icons' ;
66import { darkTeal } from '../../theme' ;
7- import { SLIGHT_BLUE } from '../../theme/colors/colors' ;
7+ import { darkModalGradient , lightModalGradient } from '../../theme/colors/colors' ;
88import { CloseBtn } from '../Modal' ;
99import CatalogFilterSidebarState from './CatalogFilterSidebarState' ;
1010import {
@@ -152,7 +152,15 @@ const CatalogFilterSidebar: React.FC<CatalogFilterSidebarProps> = ({
152152 styleProps = { appliedStyleProps }
153153 />
154154 </ 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+ />
156164 </ Box >
157165 </ Drawer >
158166 </ FilterDrawerDiv >
Original file line number Diff line number Diff line change @@ -62,7 +62,13 @@ const FilterSection: React.FC<FilterSectionProps> = ({
6262 backgroundColor : styleProps . sectionTitleBackgroundColor
6363 } }
6464 >
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+ >
6672 { ( sectionDisplayName || filterKey ) . toUpperCase ( ) }
6773 </ Typography >
6874 { openSections [ filterKey ] ? < ExpandLessIcon /> : < ExpandMoreIcon /> }
Original file line number Diff line number Diff line change 11import { styled } from '@mui/material/styles' ;
22import { Box , Button , ListItemButton } from '../../base' ;
3- import { SLIGHT_BLUE } from '../../theme/colors/colors' ;
3+ import { darkModalGradient , lightModalGradient } from '../../theme/colors/colors' ;
44import { StyleProps } from './CatalogFilterSidebar' ;
55
66export const FiltersCardDiv = styled ( Box ) < { styleProps : StyleProps } > ( ( { styleProps } ) => ( {
@@ -46,12 +46,12 @@ export const FilterButton = styled(Button)(({ theme }) => ({
4646 }
4747} ) ) ;
4848
49- export const FiltersDrawerHeader = styled ( Box ) ( ( ) => ( {
49+ export const FiltersDrawerHeader = styled ( Box ) ( ( { theme } ) => ( {
5050 display : 'flex' ,
5151 justifyContent : 'space-between' ,
5252 alignItems : 'center' ,
5353 padding : '0.5rem 1rem' ,
54- backgroundColor : SLIGHT_BLUE ,
54+ background : theme . palette . mode === 'light' ? lightModalGradient . header : darkModalGradient . header ,
5555 height : '10vh'
5656} ) ) ;
5757
You can’t perform that action at this time.
0 commit comments