Skip to content

Commit

Permalink
fix: badge on the right of tooltip title
Browse files Browse the repository at this point in the history
  • Loading branch information
nunogois committed Oct 7, 2024
1 parent 496638c commit 68b5c32
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ const LongDescription = styled(Box)(({ theme }) => ({
},
}));

const Title = styled(Typography)(({ theme }) => ({
const StyledTitle = styled('div')(({ theme }) => ({
display: 'flex',
gap: theme.spacing(1),
alignItems: 'center',
padding: theme.spacing(1, 0, 2, 0),
lineHeight: 1.5,
}));
Expand Down Expand Up @@ -123,11 +126,13 @@ export const NewInUnleashTooltip: FC<{
)}
</Header>
<Body>
<ConditionallyRender
condition={beta}
show={<Badge color='secondary'>Beta</Badge>}
/>
<Title>{title}</Title>
<StyledTitle>
<Typography>{title}</Typography>
<ConditionallyRender
condition={beta}
show={<Badge color='secondary'>Beta</Badge>}
/>
</StyledTitle>
<LongDescription>{longDescription}</LongDescription>
<ReadMore>
<StyledLink
Expand Down

0 comments on commit 68b5c32

Please sign in to comment.