@@ -24,25 +24,6 @@ const ImageColumn = styled(Column)`
24
24
}
25
25
`
26
26
27
- const GithubButton = styled ( ButtonLink ) `
28
- display: flex;
29
- align-items: center;
30
- justify-content: center;
31
- color: ${ ( props ) => props . theme . colors . background } ;
32
- background-color: ${ ( props ) => props . theme . colors . secondaryButtonBackground } ;
33
- border: 1px solid ${ ( props ) => props . theme . colors . secondaryButtonBorder } ;
34
- &:hover {
35
- background-color: ${ ( props ) =>
36
- props . theme . colors . secondaryButtonBackgroundHover } ;
37
- color: ${ ( props ) => props . theme . colors . secondaryButtonHoverColor } ;
38
- }
39
- &:active {
40
- background-color: ${ ( props ) =>
41
- props . theme . colors . secondaryButtonBackgroundActive } ;
42
- color: ${ ( props ) => props . theme . colors . secondaryButtonHoverColor } ;
43
- }
44
- `
45
-
46
27
const GithubIcon = styled ( Icon ) `
47
28
fill: ${ ( props ) => props . theme . colors . background } ;
48
29
margin-right: 0.5rem;
@@ -113,12 +94,30 @@ const CallToContribute: React.FC<IProps> = ({ editPath }) => (
113
94
< Translation id = "page-calltocontribute-link-2" />
114
95
</ Link > { " " }
115
96
</ Text >
116
- < GithubButton to = { editPath } >
97
+ < Flex
98
+ as = { ButtonLink }
99
+ to = { editPath }
100
+ alignItems = "center"
101
+ justifyContent = "center"
102
+ color = "background"
103
+ bg = "secondaryButtonBackground"
104
+ borderWidth = "1px"
105
+ borderStyle = "solid"
106
+ borderColor = "secondaryButtonBorder"
107
+ _hover = { {
108
+ background : "secondaryButtonBackgroundHover" ,
109
+ color : "secondaryButtonHoverColor" ,
110
+ } }
111
+ _active = { {
112
+ background : "secondaryButtonBackgroundActive" ,
113
+ color : "secondaryButtonHoverColor" ,
114
+ } }
115
+ >
117
116
< GithubIcon name = "github" /> { " " }
118
117
< span >
119
118
< Translation id = "page-calltocontribute-span" />
120
119
</ span >
121
- </ GithubButton >
120
+ </ Flex >
122
121
</ Flex >
123
122
</ Flex >
124
123
)
0 commit comments