mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
chore: use palette.background.alternative for background (#8627)
The default badge styling uses theme.palette.primary.main for the color, but this color doesn't give us the contrast we need in dark mode. The solution is to use theme.palette.background.alternative instead. Before:  After: 
This commit is contained in:
parent
ea08067534
commit
88e1ec5dc4
@ -23,6 +23,12 @@ interface IEventTimelineEventProps {
|
||||
endTime: number;
|
||||
}
|
||||
|
||||
const StyledBadge = styled(Badge)(({ theme }) => ({
|
||||
'.MuiBadge-badge': {
|
||||
backgroundColor: theme.palette.background.alternative,
|
||||
},
|
||||
}));
|
||||
|
||||
export const EventTimelineEventGroup = ({
|
||||
group,
|
||||
startTime,
|
||||
@ -48,13 +54,12 @@ export const EventTimelineEventGroup = ({
|
||||
maxWidth={350}
|
||||
arrow
|
||||
>
|
||||
<Badge
|
||||
<StyledBadge
|
||||
badgeContent={group.length}
|
||||
color='primary'
|
||||
invisible={group.length < 2}
|
||||
>
|
||||
<EventTimelineEventCircle group={group} />
|
||||
</Badge>
|
||||
</StyledBadge>
|
||||
</HtmlTooltip>
|
||||
</StyledEvent>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user