Skip to content

Commit

Permalink
[chore] styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Neha committed Dec 31, 2024
1 parent a692492 commit 14a637c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
14 changes: 8 additions & 6 deletions components/KeyDevelopmentMilestone/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ export default function KeyDevelopmentMilestone({
const fullText = abbreviationMap[abbreviation];

return (
<KDMInfoHoverContainer>
<React.Fragment>
{abbreviation}
<KDMInfoText>{fullText}</KDMInfoText>
</React.Fragment>
<span>
<KDMInfoHoverContainer>
<React.Fragment>
{abbreviation}
<KDMInfoText>{fullText}</KDMInfoText>
</React.Fragment>
</KDMInfoHoverContainer>
{parts[1]} {/* Text after the abbreviation */}
</KDMInfoHoverContainer>
</span>
);
}

Expand Down
8 changes: 4 additions & 4 deletions components/KeyDevelopmentMilestone/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const MilestoneTitle = styled.div`

export const KDMInfoHoverContainer = styled.div`
position: relative;
display: flex;
display: inline-flex;
cursor: pointer;
align-items: center;
gap: 0.25rem;
Expand All @@ -67,8 +67,9 @@ export const KDMInfoHoverContainer = styled.div`
`;

export const KDMInfoText = styled.div`
color: ${COLORS.navy};
visibility: hidden;
width: auto;
width: 8rem;
background-color: white;
text-align: center;
border-radius: 0.25rem;
Expand All @@ -79,8 +80,7 @@ export const KDMInfoText = styled.div`
box-shadow:
0rem 1rem 1.25rem 0rem rgba(46, 58, 89, 0.1),
0rem 0.0625rem 0.0625rem 0rem rgba(46, 58, 89, 0.15);
left: 50%;
transform: translateX(-70%);
transform: translateX(-5%);
/* Tooltip arrow */
&::after {
Expand Down
2 changes: 1 addition & 1 deletion components/StatusTag/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function StatusTag({
<CODTagStyles>
<CODInfoHoverContainer>
<CODInfoText>
<TagText1>
<TagText1 $color={COLORS.navy}>
<span style={{ color: COLORS.electricBlue }}>COD</span> stands
for{' '}
<span style={{ color: COLORS.electricBlue }}>
Expand Down

0 comments on commit 14a637c

Please # to comment.