Skip to content

Commit 3282d33

Browse files
siddharthkpCompuIves
authored andcommitted
remove hover feedback for liked heart (#2891)
1 parent 40c2628 commit 3282d33

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

packages/app/src/embed/components/Header/elements.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@ export const MenuIcon = styled(MenuIconSVG)(
120120

121121
export const LinkIcon = styled(LinkIconSVG)(css({}));
122122

123+
export const HeartButton = styled(Button)(props =>
124+
css({
125+
'&:hover': {
126+
svg: {
127+
color: props.liked ? 'reds.300' : 'white',
128+
},
129+
},
130+
})
131+
);
132+
123133
export const HeartIcon = styled(HeartIconSVG)(props =>
124134
css({
125135
color: props.liked ? 'reds.300' : 'grays.400',

packages/app/src/embed/components/Header/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
CenterAligned,
1414
LeftAligned,
1515
MenuIcon,
16+
HeartButton,
1617
HeartIcon,
1718
LinkIcon,
1819
EditorViewIcon,
@@ -81,9 +82,9 @@ function Header({
8182
</Button>
8283

8384
{toggleLike && (
84-
<Button onClick={toggleLike}>
85+
<HeartButton onClick={toggleLike} liked={liked}>
8586
<HeartIcon liked={liked} />
86-
</Button>
87+
</HeartButton>
8788
)}
8889
</RightAligned>
8990
</Container>

0 commit comments

Comments
 (0)