Skip to content

Commit

Permalink
Fixing color of row on hover (#696)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWoodard authored Oct 30, 2023
1 parent eb7dfc4 commit 4caa12c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions earn/src/components/lend/BorrowingWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { MarginAccount } from '../../data/MarginAccount';
import { rgba } from '../../util/Colors';

const SECONDARY_COLOR = 'rgba(130, 160, 182, 1)';
const SECONDARY_COLOR_LIGHT = 'rgba(130, 160, 182, 0.1)';

const CardWrapper = styled.div<{ $textAlignment: string }>`
display: flex;
Expand Down Expand Up @@ -53,11 +54,11 @@ const AvailableContainer = styled.div<{ $backgroundGradient?: string }>`
cursor: pointer;
&:hover {
background: ${(props) => props.$backgroundGradient || GREY_700};
background: ${(props) => props.$backgroundGradient || SECONDARY_COLOR_LIGHT};
}
&.selected {
background: ${GREY_700};
background: ${SECONDARY_COLOR_LIGHT};
}
`;

Expand Down

0 comments on commit 4caa12c

Please sign in to comment.