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)(
120120
121121export 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+
123133export const HeartIcon = styled ( HeartIconSVG ) ( props =>
124134 css ( {
125135 color : props . liked ? 'reds.300' : 'grays.400' ,
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments