Skip to content

Commit

Permalink
fix: adjust collectible arrow hover transparancy, closes #4971
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Jul 1, 2024
1 parent a5011ec commit 4571ad7
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/app/features/collectibles/components/collectible-hover.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ReactNode } from 'react';

import { Box, styled } from 'leather-styles/jsx';
import { Box } from 'leather-styles/jsx';

import { ArrowUpIcon } from '@leather.io/ui';
import { ArrowUpIcon, IconButton } from '@leather.io/ui';

interface CollectibleHoverProps {
collectibleTypeIcon?: ReactNode;
Expand Down Expand Up @@ -38,15 +38,23 @@ export function CollectibleHover({
{collectibleTypeIcon}
</Box>
{onClickCallToAction && (
<styled.button
<IconButton
_focus={{ outline: 'focus' }}
_hover={{ bg: 'ink.component-background-hover' }}
alignItems="center"
bg="ink.background-primary"
borderRadius="50%"
display="flex"
height="30px"
justifyContent="center"
icon={
<ArrowUpIcon
transform="rotate(45deg)"
borderRadius="50%"
width="30px"
height="30px"
_hover={{ bg: 'ink.component-background-hover' }}
/>
}
onClick={e => {
e.stopPropagation();
onClickCallToAction();
Expand All @@ -57,9 +65,7 @@ export function CollectibleHover({
type="button"
width="30px"
zIndex={999}
>
<ArrowUpIcon transform="rotate(45deg)" />
</styled.button>
/>
)}
</Box>
);
Expand Down

0 comments on commit 4571ad7

Please sign in to comment.