Skip to content

Commit

Permalink
feat: evm edit icon hovering (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchand-Nicolas committed May 22, 2024
1 parent 50098e1 commit d80ca1b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
5 changes: 4 additions & 1 deletion components/identities/identityCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ const IdentityCard: FunctionComponent<IdentityCardProps> = ({
},
}}
>
<div onClick={() => setOpenModal(true)}>
<div
onClick={() => setOpenModal(true)}
className={styles.editIcon}
>
<EditIcon
width="16"
color={theme.palette.secondary.main}
Expand Down
13 changes: 12 additions & 1 deletion styles/components/identityCard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,18 @@
height: 20px;
}

@media (min-width: 1024px) {
.editIcon {
border-radius: 0.25rem;
padding: 2px;
transition: 0.1s;
}

.evmAddr:hover .editIcon {
background-color: var(--light-tertiary);
}

.editIcon:hover {
background-color: transparent !important;
}

@media (max-width: 1124px) {
Expand Down

0 comments on commit d80ca1b

Please sign in to comment.