Skip to content

Commit

Permalink
fix(ProjectListItemCollapsable): fix no goals text
Browse files Browse the repository at this point in the history
  • Loading branch information
asabotovich committed Jun 29, 2023
1 parent aed63ed commit bc221db
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,16 @@ const StyledLink = styled.a`
color: inherit;
`;

const StyledProjectListItem = styled(ProjectListItem)`
&:hover ${StyledOpenButton} {
${visibleStyles}
}
const StyledNoGoals = styled(Text)`
white-space: nowrap;
${hiddenStyles}
`;

&:hover ${StyledHeaderButton} {
${visibleStyles}
const StyledProjectListItem = styled(ProjectListItem)`
&:hover {
${StyledOpenButton}, ${StyledHeaderButton}, ${StyledNoGoals} {
${visibleStyles}
}
}
`;

Expand Down Expand Up @@ -122,7 +125,7 @@ export const ProjectListItemCollapsable: React.FC<ProjectListItemCollapsableProp
iconRight={<Badge size="s">{project._count.goals}</Badge>}
/>
) : (
<Text color={gray7}>{tr('No goals')}</Text>
<StyledNoGoals color={gray7}>{tr('No goals')}</StyledNoGoals>
)}
</StyledGoalsButtonContainer>

Expand Down

0 comments on commit bc221db

Please sign in to comment.