Skip to content

Commit

Permalink
ISSUE #5198 - fix background color was not picked
Browse files Browse the repository at this point in the history
  • Loading branch information
Amantini1997 committed Oct 10, 2024
1 parent dd3ca23 commit 99dba7f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const CIRCLE_SIZE = {
export const Popover = styled(AuthAvatarMui)<{ $backgroundColor }>`
margin: 0;
color: ${({ $backgroundColor, theme }) => (isLight($backgroundColor, 170) ? theme.palette.secondary.main : theme.palette.primary.contrast)};
background-color: ${({ backgroundColor, theme }) => backgroundColor || theme.palette.primary.contrast};
background-color: ${({ $backgroundColor, theme }) => $backgroundColor || theme.palette.primary.contrast};
pointer-events: auto;
font-size: 9px;
${({ size = 'medium' }) => css`
Expand Down
1 change: 0 additions & 1 deletion frontend/stories/info/PopoverCircle.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ type Story = StoryObj<typeof PopoverCircle>;
export const PopoverCircleWithImage: Story = {
args: {
src: 'https://i.pinimg.com/170x/26/5c/1c/265c1cc710304eb15607e18c6f591c85.jpg',
PopoverComponent: () => <div>I am a popover</div>,
},
render: (args) => (
<HoverPopover anchor={() => (<PopoverCircle {...args} />)}>
Expand Down

0 comments on commit 99dba7f

Please sign in to comment.