We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 66ba73c + ee11020 commit 3a273adCopy full SHA for 3a273ad
10 files changed
README.md
@@ -91,7 +91,6 @@ Find out more on the <a href="https://layer5.io/community">Layer5 community</a>.
91
<br /><br /><br /><br />
92
93
</p>
94
-
95
<div> </div>
96
97
<a href="https://slack.meshery.io">
src/custom/CatalogDetail/SocialSharePopper.tsx
@@ -83,7 +83,7 @@ const SocialSharePopper: React.FC<SocialSharePopperProps> = ({
83
size="small"
84
onClick={() => handleCopyUrl(cleanedType, details?.name, details?.id)}
85
>
86
- <ChainIcon height={'24'} width={'24'} fill={theme.palette.icon.inverse} />
+ <ChainIcon height={'24'} width={'24'} fill={theme.palette.text.constant?.white} />
87
</ShareSideButton>
88
</CustomTooltip>
89
</ShareButtonGroup>
src/custom/Markdown/index.tsx
@@ -5,6 +5,7 @@ import {
5
BasicAnchorMarkdown,
6
StyledMarkdown,
7
StyledMarkdownBlockquote,
8
+ StyledMarkdownCode,
9
StyledMarkdownH1,
10
StyledMarkdownH2,
11
StyledMarkdownH3,
@@ -54,7 +55,8 @@ export const RenderMarkdown: React.FC<RenderMarkdownProps> = ({ content }) => {
54
55
li: ({ ...props }) => <StyledMarkdownLi>{props.children}</StyledMarkdownLi>,
56
th: ({ ...props }) => <StyledMarkdownTh>{props.children}</StyledMarkdownTh>,
57
td: ({ ...props }) => <StyledMarkdownTd>{props.children}</StyledMarkdownTd>,
- pre: ({ ...props }) => <StyledMarkdownPre>{props.children}</StyledMarkdownPre>
58
+ pre: ({ ...props }) => <StyledMarkdownPre>{props.children}</StyledMarkdownPre>,
59
+ code: ({ ...props }) => <StyledMarkdownCode>{props.children}</StyledMarkdownCode>
60
}}
61
62
{content}
src/custom/Markdown/style.tsx
@@ -98,3 +98,12 @@ export const StyledMarkdownPre = styled('pre')(({ theme }) => ({
98
whiteSpace: 'pre-line',
99
fontFamily: 'inherit'
100
}));
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
@@ -257,12 +257,14 @@ const ShareModal: React.FC<ShareModalProps> = ({
257
<PublicIcon
258
width={24}
259
height={24}
260
+ fill={theme.palette.icon.default}
261
stroke={theme.palette.mode === 'dark' ? WHITE : BLACK}
262
/>
263
) : (
264
<LockIcon
265
266
267
268
269
270
)}
@@ -289,7 +291,13 @@ const ShareModal: React.FC<ShareModalProps> = ({
289
291
</MenuItem>
290
292
))}
293
</CustomSelect>
- <Typography component="span" variant="body2">
294
+ <Typography
295
+ sx={{
296
+ color: theme.palette.text.secondary
297
+ }}
298
+ component="span"
299
+ variant="body2"
300
+ >
301
{selectedOption === SHARE_MODE.PRIVATE ? options.PRIVATE : options.PUBLIC}
302
</Typography>
303
</div>
src/index.tsx
@@ -6,3 +6,4 @@ export * from './icons';
export * from './redux-persist';
export * from './schemas';
export * from './theme';
+export * from './utils';
src/theme/palette.ts
@@ -255,6 +255,7 @@ export const lightModePalette: PaletteOptions = {
255
tertiary: Colors.red[70]
256
},
code: Colors.charcoal[90],
constant: {
white: Colors.accentGrey[100],
disabled: Colors.charcoal[70],
@@ -326,7 +327,7 @@ export const darkModePalette: PaletteOptions = {
326
327
brand: {
328
default: Colors.keppel[40],
329
hover: Colors.keppel[50],
- disabled: Colors.charcoal[20],
330
+ disabled: Colors.charcoal[30],
331
pressed: Colors.keppel[60],
332
secondary: Colors.keppel[20],
333
tertiary: Colors.keppel[10]
@@ -369,7 +370,7 @@ export const darkModePalette: PaletteOptions = {
369
370
secondary: Colors.red[20],
371
tertiary: Colors.red[10]
372
- code: Colors.accentGrey[90],
373
+ code: Colors.charcoal[10],
374
375
376
src/theme/typography.ts
@@ -97,7 +97,7 @@ export const typography = (mode: PaletteMode): TypographyOptions => {
}
textB2SemiBold: {
- fontFamily: ['"Open Sans"', 'sans-serif'].join(','),
+ fontFamily: ['Qanelas Soft Regular'].join(','),
color: mode === 'light' ? common.black : common.white,
fontSize: '1rem',
fontWeight: 600,
src/utils/components.ts
@@ -0,0 +1,14 @@
1
+export const componentIcon = ({
2
+ kind,
3
+ model,
4
+ color
+}: {
+ kind: string;
+ model: string;
+ color: 'white' | 'color' | 'complete';
+}) => {
+ if (!kind || !model || !color) {
+ return null;
12
+ }
13
+ return `/ui/public/static/img/meshmodels/${model}/${color}/${kind.toLowerCase()}-${color}.svg`;
14
+};
src/utils/index.ts
@@ -0,0 +1 @@
+export * from './components';
0 commit comments