Skip to content

Commit 759897f

Browse files
Merge branch 'master' into style/modal
2 parents ce9ec91 + d16e206 commit 759897f

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/custom/Modal/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export const ModalFooter: React.FC<ModalFooterProps> = ({ helpText, children, va
161161
return (
162162
<StyledFooter variant={variant} hasHelpText={!!helpText}>
163163
{helpText && (
164-
<CustomTooltip title={helpText} placement="top">
164+
<CustomTooltip title={helpText} variant="standard" placement="top">
165165
<IconButton>
166166
<InfoCircleIcon {...iconMedium} className="InfoCircleIcon" />
167167
</IconButton>

src/theme/theme.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ export const drawerWidth = 240;
77

88
export const createCustomTheme = (mode: PaletteMode, brandPalette?: Interactiveness) => {
99
const basePalette = mode == 'light' ? lightModePalette : darkModePalette;
10-
const themePalette = brandPalette
11-
? Object.assign({}, basePalette, {
12-
background: {
13-
brand: brandPalette
14-
}
15-
})
16-
: basePalette;
10+
11+
const themePalette = {
12+
...basePalette,
13+
background: {
14+
...(basePalette.background || {}),
15+
brand: {
16+
...((basePalette?.background?.brand || {}) as Interactiveness),
17+
...(brandPalette || {})
18+
}
19+
}
20+
};
1721

1822
return createTheme({
1923
palette: {

0 commit comments

Comments
 (0)