Skip to content

Commit 5142c21

Browse files
authored
Merge pull request #1039 from vr-varad/fix/mobile_filter_title_bar_fix
Fix: Meshery-Cloud Filter Drawer Title
2 parents 5d93149 + 4ae5c7b commit 5142c21

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

src/custom/CatalogFilterSection/CatalogFilterSidebar.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useCallback, useState } from 'react';
44
import { Box, Drawer, Typography } from '../../base';
55
import { CloseIcon } from '../../icons';
66
import { darkTeal } from '../../theme';
7-
import { SLIGHT_BLUE } from '../../theme/colors/colors';
7+
import { darkModalGradient, lightModalGradient } from '../../theme/colors/colors';
88
import { CloseBtn } from '../Modal';
99
import CatalogFilterSidebarState from './CatalogFilterSidebarState';
1010
import {
@@ -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>

src/custom/CatalogFilterSection/FilterSection.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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 />}

src/custom/CatalogFilterSection/style.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { styled } from '@mui/material/styles';
22
import { Box, Button, ListItemButton } from '../../base';
3-
import { SLIGHT_BLUE } from '../../theme/colors/colors';
3+
import { darkModalGradient, lightModalGradient } from '../../theme/colors/colors';
44
import { StyleProps } from './CatalogFilterSidebar';
55

66
export 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

0 commit comments

Comments
 (0)