Skip to content

Commit f1f678c

Browse files
revert lint change
Signed-off-by: saurabhraghuvanshii <saurabhsraghuvanshi@gmail.com>
1 parent 520b26a commit f1f678c

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

src/custom/Markdown/style.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { styled } from '@mui/material';
2+
import { text } from '../../theme/colors/colors';
23

34
export const StyledMarkdown = styled('a')(({ theme }) => ({
45
color: theme.palette.background.brand?.default,
@@ -27,7 +28,7 @@ export const StyledMarkdownP = styled('p')(({ theme }) => ({
2728
}));
2829

2930
export const StyledMarkdownTooltipP = styled('p')(({ theme }) => ({
30-
color: theme.palette.text.constant?.white || '#ffffff',
31+
color: theme.palette.text.constant?.white || text.inverse,
3132
marginBlock: '0px',
3233
fontFamily: 'inherit'
3334
}));

src/theme/theme.ts

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,23 @@ export const createCustomTheme = (mode: PaletteMode, brandPalette?: Interactiven
1111

1212
console.log('Creating theme with mode:', mode, 'and brandPalette:', brandPalette);
1313

14-
const customBrandedTheme = brandPalette
15-
? {
16-
primary: {
17-
main: brandPalette.default,
18-
secondary: brandPalette.hover,
19-
},
20-
secondary: {
21-
main: brandPalette.secondary,
22-
secondary: brandPalette.secondary,
23-
},
24-
background: {
25-
brand: brandPalette
26-
}
27-
}
28-
: {};
14+
const customBrandedTheme = brandPalette ? {
15+
primary: {
16+
main: brandPalette.default ,
17+
secondary: brandPalette.hover,
18+
},
19+
secondary: {
20+
main: brandPalette.secondary,
21+
secondary: brandPalette.secondary,
22+
},
23+
background: {
24+
brand: brandPalette
25+
}
26+
} : {};
2927

3028
const themePalette = _.merge({}, basePalette, customBrandedTheme);
3129

30+
3231
return createTheme({
3332
palette: {
3433
mode,

0 commit comments

Comments
 (0)