@@ -15,13 +15,39 @@ import { Nullable } from 'uiSrc/utils'
15
15
import { Col , FlexItem , Row } from 'uiSrc/components/base/layout/flex'
16
16
import { Text } from 'uiSrc/components/base/text'
17
17
import { CancelSlimIcon } from 'uiSrc/components/base/icons'
18
- import { IconButton , PrimaryButton } from 'uiSrc/components/base/forms/buttons'
18
+ import { IconButton } from 'uiSrc/components/base/forms/buttons'
19
19
import { Link } from 'uiSrc/components/base/link/Link'
20
20
import { RiPopover , RiTooltip } from 'uiSrc/components/base'
21
21
import { RiIcon } from 'uiSrc/components/base/icons/RiIcon'
22
22
23
23
import { getVotedText , iconType , voteTooltip } from './utils'
24
24
import styles from './styles.module.scss'
25
+ import styled from 'styled-components'
26
+ import { Theme } from 'uiSrc/components/base/theme/types'
27
+
28
+ const GitHubLink = styled ( Link ) `
29
+ padding: 4px 8px 4px 4px;
30
+
31
+ margin-top: 10px;
32
+ height: 22px !important;
33
+ background-color: ${ ( { theme } : { theme : Theme } ) =>
34
+ theme . components . button . variants . primary . normal ?. bgColor } ;
35
+ color: ${ ( { theme } : { theme : Theme } ) =>
36
+ theme . components . button . variants . primary . normal ?. textColor } ;
37
+ &:hover {
38
+ text-decoration: none !important;
39
+ background-color: ${ ( { theme } : { theme : Theme } ) =>
40
+ theme . components . button . variants . primary . hover ?. bgColor } ;
41
+ color: ${ ( { theme } : { theme : Theme } ) =>
42
+ theme . components . button . variants . primary . normal ?. textColor } ;
43
+ }
44
+
45
+ & > span {
46
+ display: flex;
47
+ gap: 4px;
48
+ align-items: center;
49
+ }
50
+ `
25
51
26
52
export interface Props {
27
53
voteOption : Vote
@@ -148,28 +174,22 @@ const VoteOption = (props: Props) => {
148
174
</ Row >
149
175
</ FlexItem >
150
176
< FlexItem grow >
151
- < PrimaryButton
152
- aria-label = "recommendation feedback"
177
+ < GitHubLink
153
178
data-testid = "recommendation-feedback-btn"
154
- className = { styles . feedbackBtn }
155
- size = "s"
179
+ className = { styles . link }
180
+ href = { EXTERNAL_LINKS . recommendationFeedback }
181
+ target = "_blank"
182
+ data-test-subj = "github-repo-link"
156
183
>
157
- < Link
158
- className = { styles . link }
159
- href = { EXTERNAL_LINKS . recommendationFeedback }
160
- target = "_blank"
161
- data-test-subj = "github-repo-link"
162
- >
163
- < RiIcon
164
- className = { styles . githubIcon }
165
- aria-label = "redis insight github issues"
166
- type = "GithubIcon"
167
- color = "informative100"
168
- data-testid = "github-repo-icon"
169
- />
170
- To Github
171
- </ Link >
172
- </ PrimaryButton >
184
+ < RiIcon
185
+ className = { styles . githubIcon }
186
+ aria-label = "redis insight github issues"
187
+ type = "GithubIcon"
188
+ color = "informative100"
189
+ data-testid = "github-repo-icon"
190
+ />
191
+ To Github
192
+ </ GitHubLink >
173
193
</ FlexItem >
174
194
</ Col >
175
195
</ div >
0 commit comments