Skip to content

Commit 7fd9bdb

Browse files
authored
Merge branch 'master' into branded-theme
Signed-off-by: Aabid Sofi <[email protected]>
2 parents 7d9e44c + d954a95 commit 7fd9bdb

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed

src/custom/CollaboratorAvatarGroup/CollaboratorAvatarGroup.tsx

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ExpandMore } from '@mui/icons-material';
22
import { MouseEvent, useState } from 'react';
3-
import { Avatar, AvatarGroup, Button, Popover, Typography, Divider } from '../../base';
3+
import { Avatar, AvatarGroup, Button, Divider, Popover, Typography } from '../../base';
44
import { iconSmall } from '../../constants/iconsSizes';
55
import { styled, useTheme } from '../../theme';
66
import { DARK_TEAL_BLUE } from '../../theme/colors/colors';
@@ -144,9 +144,33 @@ const CollaboratorAvatarGroup = ({
144144
return (
145145
<CustomTooltip
146146
key={clientID}
147+
componentsProps={{
148+
tooltip: {
149+
sx: {
150+
background: theme.palette.background.paper,
151+
color: theme.palette.text.primary,
152+
boxShadow: theme.shadows[4]
153+
}
154+
},
155+
arrow: {
156+
sx: {
157+
color: theme.palette.background.paper
158+
}
159+
}
160+
}}
147161
title={
148162
<div style={{ display: 'flex', justifyContent: 'center', flexDirection: 'column' }}>
149-
<Typography style={{ display: 'flex', justifyContent: 'center', flexDirection: 'column', margin: 'auto', fontSize: '1rem' }}>{user.name}</Typography>
163+
<Typography
164+
style={{
165+
display: 'flex',
166+
justifyContent: 'center',
167+
flexDirection: 'column',
168+
margin: 'auto',
169+
fontSize: '1rem'
170+
}}
171+
>
172+
{user.name}
173+
</Typography>
150174
<Divider />
151175
<Button
152176
size="small"
@@ -156,7 +180,7 @@ const CollaboratorAvatarGroup = ({
156180
fontSize: '1rem',
157181
padding: '2px 8px',
158182
minWidth: 'auto',
159-
marginTop: '4px'
183+
marginTop: '8px'
160184
}}
161185
>
162186
Open Recents

src/theme/theme.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import _ from 'lodash';
88
export const drawerWidth = 240;
99

1010

11-
12-
1311
/**
1412
* Primitive palette defines the raw, brand-level colors used in the UI.
1513
* These are foundational tokens that never directly appear in components
@@ -323,4 +321,5 @@ export const createCustomTheme = (mode: PaletteMode, primitives?: PrimitivePalet
323321
typography: typography(mode),
324322
breakpoints: {}
325323
});
324+
326325
};

0 commit comments

Comments
 (0)