@eturnity/eturnity_reusable_components 8.13.13-qa-16-03-26.2 → 8.13.13-qa-16-03-26.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -21,6 +21,7 @@
|
|
21
21
|
iconColor ||
|
22
22
|
theme.mainButton[appTheme][type][variant].default.textColor
|
23
23
|
"
|
24
|
+
:disable-hover="disableIconHover"
|
24
25
|
:hovered-color="
|
25
26
|
iconColor ||
|
26
27
|
theme.mainButton[appTheme][type][variant].default.textColor
|
@@ -231,6 +232,10 @@
|
|
231
232
|
default: false,
|
232
233
|
type: Boolean,
|
233
234
|
},
|
235
|
+
disableIconHover: {
|
236
|
+
type: Boolean,
|
237
|
+
default: false,
|
238
|
+
},
|
234
239
|
},
|
235
240
|
data() {
|
236
241
|
return {
|
@@ -10,6 +10,7 @@
|
|
10
10
|
:background-color="backgroundColor"
|
11
11
|
:color="color"
|
12
12
|
data-test-id="icon_image"
|
13
|
+
:disable-hover="disableHover"
|
13
14
|
:fill-type="fillType"
|
14
15
|
:hovered-color="hoveredColor"
|
15
16
|
>
|
@@ -97,6 +98,10 @@
|
|
97
98
|
default: 'fill',
|
98
99
|
type: String,
|
99
100
|
},
|
101
|
+
disableHover: {
|
102
|
+
type: Boolean,
|
103
|
+
default: false,
|
104
|
+
},
|
100
105
|
})
|
101
106
|
|
102
107
|
const Wrapper = styled('div', {
|
@@ -152,6 +157,7 @@
|
|
152
157
|
hoveredColor: String,
|
153
158
|
animation: String,
|
154
159
|
fillType: String,
|
160
|
+
disableHover: Boolean,
|
155
161
|
}
|
156
162
|
const IconImage = styled('div', IconImageAttrs)`
|
157
163
|
animation: ${(props) => props.animation};
|
@@ -168,12 +174,17 @@
|
|
168
174
|
${({ theme, color, fillType }) =>
|
169
175
|
color && `${fillType}: ${theme.colors[color] || color};`}
|
170
176
|
}
|
171
|
-
|
172
|
-
|
177
|
+
${(props) =>
|
178
|
+
!props.disableHover &&
|
179
|
+
`
|
180
|
+
&:hover svg path:not(.fix) {
|
181
|
+
${`${props.fillType}: ${props.hoveredColor || props.color};`}
|
173
182
|
}
|
174
183
|
&:hover + div {
|
175
|
-
background-color: ${
|
184
|
+
background-color: ${props.hoveredColor};
|
176
185
|
}
|
186
|
+
`}
|
187
|
+
|
177
188
|
@keyframes fade {
|
178
189
|
50% {
|
179
190
|
opacity: 0.3;
|