Skip to content

Commit 0da7cbd

Browse files
committedDec 16, 2024··
chore: adjust hover effect in card
1 parent 7465db0 commit 0da7cbd

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed
 

‎web/src/components/DisputeView/DisputeCardView.tsx

+1-5
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ const StyledCard = styled(Card)`
2121
height: 100%;
2222
max-height: 335px;
2323
min-height: 290px;
24-
25-
&:hover {
26-
background-color: ${({ theme }) => theme.lightGrey}BB;
27-
}
2824
`;
2925

3026
const CardContainer = styled.div`
@@ -62,7 +58,7 @@ interface IDisputeCardView {
6258
const DisputeCardView: React.FC<IDisputeCardView> = ({ isLoading, ...props }) => {
6359
return (
6460
<Link to={`/cases/${props?.disputeID?.toString()}`}>
65-
<StyledCard>
61+
<StyledCard hover>
6662
<PeriodBanner id={parseInt(props?.disputeID)} period={props?.period} />
6763
<CardContainer>
6864
{isLoading ? <StyledCaseCardTitleSkeleton /> : <TruncatedTitle text={props?.title} maxLength={100} />}

‎web/src/components/DisputeView/DisputeListView.tsx

+1-5
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ const StyledListItem = styled(Card)`
2020
flex-grow: 1;
2121
width: 100%;
2222
height: 82px;
23-
24-
&:hover {
25-
background-color: ${({ theme }) => theme.lightGrey}BB;
26-
}
2723
`;
2824

2925
const ListContainer = styled.div`
@@ -65,7 +61,7 @@ const DisputeListView: React.FC<IDisputeListView> = (props) => {
6561
const { isDisconnected } = useAccount();
6662
return (
6763
<Link to={`/cases/${props?.disputeID?.toString()}`}>
68-
<StyledListItem>
64+
<StyledListItem hover>
6965
<PeriodBanner isCard={false} id={parseInt(props?.disputeID ?? "0")} period={props.period} />
7066
<ListContainer>
7167
<TitleContainer isLabel={!isDisconnected}>

‎web/src/pages/Cases/CaseDetails/Appeal/OptionCard.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ const StyledCard = styled(Card)`
1818
padding: 24px;
1919
2020
&:hover {
21-
background-color: ${({ theme }) => theme.lightGrey}BB;
2221
cursor: pointer;
23-
box-shadow: none;
2422
}
2523
`;
2624

0 commit comments

Comments
 (0)
Please sign in to comment.