Skip to content

Commit

Permalink
Merge branch 'bugfix/fix-dark-panel-in-high-level-services-dashbaord-…
Browse files Browse the repository at this point in the history
…page' into q/124.0
  • Loading branch information
bert-e committed Nov 18, 2022
2 parents d9367fa + dcee12b commit f296b9e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ui/src/components/HealthItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ const NonHealthyPopUp = styled.div`
`;

const NonHealthyPopUpTitle = styled.div`
font-weight: ${fontWeight.bold}
text-align: center;
font-weight: ${fontWeight.bold};
align-self: center;
`;

const NonHealthyPopUpItem = styled.div`
Expand Down Expand Up @@ -104,7 +104,7 @@ const HealthItem = ({
(view) => view.view.path === '/alerts',
);

if (!alerts.length && status === STATUS_HEALTH)
if (!alerts.length && status === STATUS_HEALTH) {
return (
<ServiceItemElement aria-label={label}>
<ServiceItemLabelWrapper>
Expand All @@ -113,15 +113,14 @@ const HealthItem = ({
</ServiceItemLabelWrapper>
</ServiceItemElement>
);
else
} else {
return (
<NonHealthyServiceItemElement>
<Tooltip
// Right placement to avoid Z index issues between left sidebar and tooltip or out of screen tooltip displays
placement="top"
overlayStyle={{
width: '20rem',
height: '100%',
}}
overlay={
<NonHealthyPopUp>
Expand Down Expand Up @@ -161,6 +160,7 @@ const HealthItem = ({
</Tooltip>
</NonHealthyServiceItemElement>
);
}
};

export default HealthItem;

0 comments on commit f296b9e

Please sign in to comment.