Skip to content

Commit

Permalink
switch diff check and colours
Browse files Browse the repository at this point in the history
  • Loading branch information
shanimal08 committed Dec 6, 2024
1 parent 03da95b commit cab55fb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ export const Cell = styled.div<{ $alignment?: CSSProperties['alignItems']; $diff
$diff &&
css`
&::after {
content: '${$diff === 0 ? '✓' : $diff > 0 ? '↑' : '↓'}';
content: '${$diff === 0 ? '✓' : $diff < 0 ? '↑' : '↓'}';
position: absolute;
font-size: 7px;
right: -5px;
top: 50%;
transform: translateY(-50%);
color: ${$diff === 0 ? theme.colors.green[600] : theme.colors.red[600]};
color: ${$diff === 0 ? theme.colors.green[600] : $diff > 0 ? theme.colors.red[600] : 'inherit'};
}
`}
`;
Expand Down

0 comments on commit cab55fb

Please sign in to comment.