Skip to content

Commit

Permalink
Merge branch 'master' into style/modal
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-slayer875 authored Jun 26, 2024
2 parents ce9ec91 + d16e206 commit 759897f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/custom/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const ModalFooter: React.FC<ModalFooterProps> = ({ helpText, children, va
return (
<StyledFooter variant={variant} hasHelpText={!!helpText}>
{helpText && (
<CustomTooltip title={helpText} placement="top">
<CustomTooltip title={helpText} variant="standard" placement="top">
<IconButton>
<InfoCircleIcon {...iconMedium} className="InfoCircleIcon" />
</IconButton>
Expand Down
18 changes: 11 additions & 7 deletions src/theme/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ export const drawerWidth = 240;

export const createCustomTheme = (mode: PaletteMode, brandPalette?: Interactiveness) => {
const basePalette = mode == 'light' ? lightModePalette : darkModePalette;
const themePalette = brandPalette
? Object.assign({}, basePalette, {
background: {
brand: brandPalette
}
})
: basePalette;

const themePalette = {
...basePalette,
background: {
...(basePalette.background || {}),
brand: {
...((basePalette?.background?.brand || {}) as Interactiveness),
...(brandPalette || {})
}
}
};

return createTheme({
palette: {
Expand Down

0 comments on commit 759897f

Please sign in to comment.