File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,16 @@ export const MenuIcon = styled(MenuIconSVG)(
120
120
121
121
export const LinkIcon = styled ( LinkIconSVG ) ( css ( { } ) ) ;
122
122
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
+
123
133
export const HeartIcon = styled ( HeartIconSVG ) ( props =>
124
134
css ( {
125
135
color : props . liked ? 'reds.300' : 'grays.400' ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
13
13
CenterAligned ,
14
14
LeftAligned ,
15
15
MenuIcon ,
16
+ HeartButton ,
16
17
HeartIcon ,
17
18
LinkIcon ,
18
19
EditorViewIcon ,
@@ -81,9 +82,9 @@ function Header({
81
82
</ Button >
82
83
83
84
{ toggleLike && (
84
- < Button onClick = { toggleLike } >
85
+ < HeartButton onClick = { toggleLike } liked = { liked } >
85
86
< HeartIcon liked = { liked } />
86
- </ Button >
87
+ </ HeartButton >
87
88
) }
88
89
</ RightAligned >
89
90
</ Container >
You can’t perform that action at this time.
0 commit comments