Skip to content

Commit 01959f7

Browse files
authored
Merge pull request #819 from amitamrutiya/update-cell
fix color and font related issue for the catalog modal
2 parents 5d1b75c + 1b928f4 commit 01959f7

File tree

6 files changed

+53
-22
lines changed

6 files changed

+53
-22
lines changed

src/custom/CatalogDetail/CollapsibleSection.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ const CollapsibleSection: React.FC<CollapsibleSectionProps> = ({
3838
<InfoTooltip helpText={tooltip} />
3939
{isOpen ? <ExpandLessIcon /> : <ExpandMoreIcon />}
4040
</SideTitleButton>
41-
<Collapse sx={{ width: '100%' }} in={isOpen} timeout="auto" unmountOnExit>
41+
<Collapse
42+
sx={{ width: '100%', fontFamily: 'inherit' }}
43+
in={isOpen}
44+
timeout="auto"
45+
unmountOnExit
46+
>
4247
{items && items.length > 0 ? (
4348
<List component="div" sx={{ width: '100%', padding: '0.5rem' }} disablePadding>
4449
{items?.map(renderItem)}
@@ -50,6 +55,9 @@ const CollapsibleSection: React.FC<CollapsibleSectionProps> = ({
5055
opacity: 0.8,
5156
padding: '7px'
5257
}}
58+
primaryTypographyProps={{
59+
fontFamily: 'inherit'
60+
}}
5361
primary={emptyState}
5462
/>
5563
)}

src/custom/CatalogDetail/SocialSharePopper.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { Box, IconButton, Menu, MenuItem, Tooltip } from '@mui/material';
1+
import { Box, IconButton, Menu, MenuItem } from '@mui/material';
22
import React, { useState } from 'react';
33
import { FacebookShareButton, LinkedinShareButton, TwitterShareButton } from 'react-share';
44
import { ChainIcon, FacebookIcon, LinkedinIcon, ShareIcon, TwitterIcon } from '../../icons';
55
import { useTheme } from '../../theme';
66
import { Pattern } from '../CustomCatalog/CustomCard';
7+
import { CustomTooltip } from '../CustomTooltip';
78
import { ErrorBoundary } from '../ErrorBoundary';
89
import { CopyShareIconWrapper, VisibilityChip } from './style';
910

@@ -50,23 +51,23 @@ const SocialSharePopper: React.FC<SocialSharePopperProps> = ({
5051
</VisibilityChip>
5152

5253
{details?.visibility !== 'private' && (
53-
<Tooltip title="Copy Link" placement="top" arrow>
54+
<CustomTooltip title="Copy Link" placement="top" arrow>
5455
<IconButton
5556
sx={{ borderRadius: '0.1rem', padding: '0.5rem' }}
5657
onClick={() => handleCopyUrl(cleanedType, details?.name, details?.id)}
5758
>
58-
<ChainIcon height={'24'} width={'24'} />
59+
<ChainIcon height={'24'} width={'24'} fill={theme.palette.icon.secondary} />
5960
</IconButton>
60-
</Tooltip>
61+
</CustomTooltip>
6162
)}
6263

6364
{(details?.visibility === 'published' || details?.visibility === 'public') && (
6465
<>
65-
<Tooltip title={title} placement="top" arrow>
66+
<CustomTooltip title={title} placement="top" arrow>
6667
<IconButton sx={{ borderRadius: '0.1rem', padding: '0.5rem' }} onClick={handleClick}>
67-
<ShareIcon height={24} width={22} />
68+
<ShareIcon height={24} width={22} fill={theme.palette.icon.secondary} />
6869
</IconButton>
69-
</Tooltip>
70+
</CustomTooltip>
7071

7172
<Menu
7273
anchorEl={anchorEl}

src/custom/CatalogDetail/style.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,13 @@ export const MetricsType = styled('div')(({ theme }) => ({
172172
letterSpacing: '0.15px',
173173
lineHeight: '1.5',
174174
textTransform: 'lowercase',
175-
color: theme.palette.background.supplementary,
175+
color: theme.palette.icon.secondary,
176176
[' @media (max-width: 285px)']: {
177177
fontSize: '0.86rem'
178178
}
179179
}));
180180
export const MetricsData = styled('div')(({ theme }) => ({
181-
color: theme.palette.background.supplementary,
181+
color: theme.palette.icon.secondary,
182182
fontSize: '1.2rem',
183183
fontWeight: 'bold',
184184
lineHeight: '1.5'

src/custom/InputSearchField/InputSearchField.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ const InputSearchField: React.FC<InputSearchFieldProps> = ({
127127
error={!!error}
128128
helperText={error}
129129
fullWidth
130+
InputLabelProps={{
131+
style: {
132+
fontFamily: 'inherit'
133+
}
134+
}}
130135
InputProps={{
131136
...params.InputProps,
132137
endAdornment: (

src/custom/Markdown/style.tsx

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ export const StyledMarkdown = styled('a')(({ theme }) => ({
77
'&:hover': {
88
textDecoration: 'underline'
99
},
10-
cursor: 'pointer'
10+
cursor: 'pointer',
11+
fontFamily: 'inherit'
1112
}));
1213

1314
// anchor style for notifications markdown content
@@ -28,31 +29,38 @@ export const StyledMarkdownP = styled('p')(({ theme }) => ({
2829

2930
export const StyledMarkdownTooltipP = styled('p')(({ theme }) => ({
3031
color: theme.palette.text.constant?.white || text.inverse,
31-
marginBlock: '0px'
32+
marginBlock: '0px',
33+
fontFamily: 'inherit'
3234
}));
3335

3436
export const StyledMarkdownH1 = styled('h1')(({ theme }) => ({
35-
color: theme.palette.text.default
37+
color: theme.palette.text.default,
38+
fontFamily: 'inherit'
3639
}));
3740

3841
export const StyledMarkdownH2 = styled('h2')(({ theme }) => ({
39-
color: theme.palette.text.default
42+
color: theme.palette.text.default,
43+
fontFamily: 'inherit'
4044
}));
4145

4246
export const StyledMarkdownH3 = styled('h3')(({ theme }) => ({
43-
color: theme.palette.text.default
47+
color: theme.palette.text.default,
48+
fontFamily: 'inherit'
4449
}));
4550

4651
export const StyledMarkdownH4 = styled('h4')(({ theme }) => ({
47-
color: theme.palette.text.default
52+
color: theme.palette.text.default,
53+
fontFamily: 'inherit'
4854
}));
4955

5056
export const StyledMarkdownH5 = styled('h5')(({ theme }) => ({
51-
color: theme.palette.text.default
57+
color: theme.palette.text.default,
58+
fontFamily: 'inherit'
5259
}));
5360

5461
export const StyledMarkdownH6 = styled('h6')(({ theme }) => ({
55-
color: theme.palette.text.default
62+
color: theme.palette.text.default,
63+
fontFamily: 'inherit'
5664
}));
5765

5866
export const StyledMarkdownBlockquote = styled('blockquote')(({ theme }) => ({
@@ -67,22 +75,26 @@ export const StyledMarkdownUl = styled('ul')(({ theme }) => ({
6775

6876
export const StyledMarkdownLi = styled('li')(({ theme }) => ({
6977
color: theme.palette.text.default,
70-
...theme.typography.textB1Regular
78+
...theme.typography.textB1Regular,
79+
fontFamily: 'inherit'
7180
}));
7281

7382
export const StyledMarkdownTh = styled('th')(({ theme }) => ({
7483
color: theme.palette.text.default,
7584
...theme.typography.textH3Medium,
76-
marginBlock: '0px'
85+
marginBlock: '0px',
86+
fontFamily: 'inherit'
7787
}));
7888

7989
export const StyledMarkdownTd = styled('td')(({ theme }) => ({
8090
color: theme.palette.text.default,
8191
marginBlock: '0px',
82-
...theme.typography.textB1Regular
92+
...theme.typography.textB1Regular,
93+
fontFamily: 'inherit'
8394
}));
8495

8596
export const StyledMarkdownPre = styled('pre')(({ theme }) => ({
8697
background: theme.palette.background.code,
87-
whiteSpace: 'pre-line'
98+
whiteSpace: 'pre-line',
99+
fontFamily: 'inherit'
88100
}));

src/custom/UserSearchField/UserSearchFieldInput.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ const UserSearchField: React.FC<UserSearchFieldProps> = ({
194194
label={label}
195195
error={!!error}
196196
helperText={error}
197+
InputLabelProps={{
198+
style: {
199+
fontFamily: 'inherit'
200+
}
201+
}}
197202
InputProps={{
198203
...params.InputProps,
199204
endAdornment: (

0 commit comments

Comments
 (0)