File tree Expand file tree Collapse file tree 3 files changed +8
-30
lines changed
redisinsight/ui/src/components
recommendation/recommendation-voting
side-panels/panels/live-time-recommendations/components/recommendation Expand file tree Collapse file tree 3 files changed +8
-30
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import { Nullable } from 'uiSrc/utils'
14
14
15
15
import { Col , FlexItem , Row } from 'uiSrc/components/base/layout/flex'
16
16
import { Text } from 'uiSrc/components/base/text'
17
- import { CancelSlimIcon } from 'uiSrc/components/base/icons'
17
+ import { CancelSlimIcon , Icon } from 'uiSrc/components/base/icons'
18
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'
@@ -49,6 +49,12 @@ const GitHubLink = styled(Link)`
49
49
}
50
50
`
51
51
52
+ const VotingIconButton = styled ( IconButton ) `
53
+ width: 28px !important;
54
+ height: 28px !important;
55
+ border-radius: 50%;
56
+ `
57
+
52
58
export interface Props {
53
59
voteOption : Vote
54
60
vote ?: Nullable < Vote >
@@ -130,7 +136,7 @@ const VoteOption = (props: Props) => {
130
136
position = "bottom"
131
137
data-testid = { `${ voteOption } -vote-tooltip` }
132
138
>
133
- < IconButton
139
+ < VotingIconButton
134
140
disabled = { ! isAnalyticsEnable }
135
141
icon = { iconType [ voteOption ] ?? 'LikeIcon' }
136
142
className = { cx ( 'vote__btn' , { selected : vote === voteOption } ) }
Original file line number Diff line number Diff line change 3
3
.voteContent {
4
4
margin-left : 10px ;
5
5
6
- .vote__btn {
7
- width : 28px !important ;
8
- height : 28px !important ;
9
- border-radius : 50% ;
10
-
11
- & :hover ,
12
- & :focus ,
13
- & .selected {
14
- transform : none ;
15
- background-color : var (--separatorColor );
16
- }
17
- }
18
-
19
6
svg {
20
7
width : 34px ;
21
8
height : 34px ;
Original file line number Diff line number Diff line change 88
88
font-size : inherit !important ;
89
89
}
90
90
}
91
-
92
- .link {
93
- color : var (--externalLinkColor ) !important ;
94
- }
95
-
96
- :global {
97
- .vote__btn {
98
- &:hover,
99
- &:focus,
100
- &.selected {
101
- transform : none ;
102
- background-color : var (--liveRecommendationVoteBgColor ) !important ;
103
- }
104
- }
105
- }
106
91
}
107
92
108
93
.actions {
You can’t perform that action at this time.
0 commit comments