Skip to content

Commit 3a273ad

Browse files
authored
Merge branch 'master' into ci-add-lint-checks
2 parents 66ba73c + ee11020 commit 3a273ad

File tree

10 files changed

+42
-7
lines changed

10 files changed

+42
-7
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ Find out more on the <a href="https://layer5.io/community">Layer5 community</a>.
9191
<br /><br /><br /><br />
9292

9393
</p>
94-
9594
<div>&nbsp;</div>
9695

9796
<a href="https://slack.meshery.io">

src/custom/CatalogDetail/SocialSharePopper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const SocialSharePopper: React.FC<SocialSharePopperProps> = ({
8383
size="small"
8484
onClick={() => handleCopyUrl(cleanedType, details?.name, details?.id)}
8585
>
86-
<ChainIcon height={'24'} width={'24'} fill={theme.palette.icon.inverse} />
86+
<ChainIcon height={'24'} width={'24'} fill={theme.palette.text.constant?.white} />
8787
</ShareSideButton>
8888
</CustomTooltip>
8989
</ShareButtonGroup>

src/custom/Markdown/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
BasicAnchorMarkdown,
66
StyledMarkdown,
77
StyledMarkdownBlockquote,
8+
StyledMarkdownCode,
89
StyledMarkdownH1,
910
StyledMarkdownH2,
1011
StyledMarkdownH3,
@@ -54,7 +55,8 @@ export const RenderMarkdown: React.FC<RenderMarkdownProps> = ({ content }) => {
5455
li: ({ ...props }) => <StyledMarkdownLi>{props.children}</StyledMarkdownLi>,
5556
th: ({ ...props }) => <StyledMarkdownTh>{props.children}</StyledMarkdownTh>,
5657
td: ({ ...props }) => <StyledMarkdownTd>{props.children}</StyledMarkdownTd>,
57-
pre: ({ ...props }) => <StyledMarkdownPre>{props.children}</StyledMarkdownPre>
58+
pre: ({ ...props }) => <StyledMarkdownPre>{props.children}</StyledMarkdownPre>,
59+
code: ({ ...props }) => <StyledMarkdownCode>{props.children}</StyledMarkdownCode>
5860
}}
5961
>
6062
{content}

src/custom/Markdown/style.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,12 @@ export const StyledMarkdownPre = styled('pre')(({ theme }) => ({
9898
whiteSpace: 'pre-line',
9999
fontFamily: 'inherit'
100100
}));
101+
102+
export const StyledMarkdownCode = styled('code')(({ theme }) => ({
103+
background: theme.palette.background.code,
104+
whiteSpace: 'pre-line',
105+
padding: '1.5px',
106+
paddingInline: '5px',
107+
fontFamily: 'inherit',
108+
borderRadius: 3
109+
}));

src/custom/ShareModal/ShareModal.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,14 @@ const ShareModal: React.FC<ShareModalProps> = ({
257257
<PublicIcon
258258
width={24}
259259
height={24}
260+
fill={theme.palette.icon.default}
260261
stroke={theme.palette.mode === 'dark' ? WHITE : BLACK}
261262
/>
262263
) : (
263264
<LockIcon
264265
width={24}
265266
height={24}
267+
fill={theme.palette.icon.default}
266268
stroke={theme.palette.mode === 'dark' ? WHITE : BLACK}
267269
/>
268270
)}
@@ -289,7 +291,13 @@ const ShareModal: React.FC<ShareModalProps> = ({
289291
</MenuItem>
290292
))}
291293
</CustomSelect>
292-
<Typography component="span" variant="body2">
294+
<Typography
295+
sx={{
296+
color: theme.palette.text.secondary
297+
}}
298+
component="span"
299+
variant="body2"
300+
>
293301
{selectedOption === SHARE_MODE.PRIVATE ? options.PRIVATE : options.PUBLIC}
294302
</Typography>
295303
</div>

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ export * from './icons';
66
export * from './redux-persist';
77
export * from './schemas';
88
export * from './theme';
9+
export * from './utils';

src/theme/palette.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ export const lightModePalette: PaletteOptions = {
255255
tertiary: Colors.red[70]
256256
},
257257
code: Colors.charcoal[90],
258+
258259
constant: {
259260
white: Colors.accentGrey[100],
260261
disabled: Colors.charcoal[70],
@@ -326,7 +327,7 @@ export const darkModePalette: PaletteOptions = {
326327
brand: {
327328
default: Colors.keppel[40],
328329
hover: Colors.keppel[50],
329-
disabled: Colors.charcoal[20],
330+
disabled: Colors.charcoal[30],
330331
pressed: Colors.keppel[60],
331332
secondary: Colors.keppel[20],
332333
tertiary: Colors.keppel[10]
@@ -369,7 +370,7 @@ export const darkModePalette: PaletteOptions = {
369370
secondary: Colors.red[20],
370371
tertiary: Colors.red[10]
371372
},
372-
code: Colors.accentGrey[90],
373+
code: Colors.charcoal[10],
373374
constant: {
374375
white: Colors.accentGrey[100],
375376
disabled: Colors.charcoal[70],

src/theme/typography.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const typography = (mode: PaletteMode): TypographyOptions => {
9797
}
9898
},
9999
textB2SemiBold: {
100-
fontFamily: ['"Open Sans"', 'sans-serif'].join(','),
100+
fontFamily: ['Qanelas Soft Regular'].join(','),
101101
color: mode === 'light' ? common.black : common.white,
102102
fontSize: '1rem',
103103
fontWeight: 600,

src/utils/components.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export const componentIcon = ({
2+
kind,
3+
model,
4+
color
5+
}: {
6+
kind: string;
7+
model: string;
8+
color: 'white' | 'color' | 'complete';
9+
}) => {
10+
if (!kind || !model || !color) {
11+
return null;
12+
}
13+
return `/ui/public/static/img/meshmodels/${model}/${color}/${kind.toLowerCase()}-${color}.svg`;
14+
};

src/utils/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './components';

0 commit comments

Comments
 (0)