@unitedstatespowersquadrons/components 1.2.6-pre.4 → 1.2.6-pre.6
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/Colors.tsx +1 -0
- package/Styles.tsx +6 -3
- package/package.json +1 -1
package/Colors.tsx
CHANGED
package/Styles.tsx
CHANGED
|
@@ -27,14 +27,17 @@ const hoverColorStyles = {
|
|
|
27
27
|
const colorizeButton = (color: ButtonColorName) => {
|
|
28
28
|
const hover = Colors.button.background.hover[color];
|
|
29
29
|
const normal = Colors.button.background.normal[color];
|
|
30
|
-
|
|
30
|
+
const shadow = Colors.button.background.shadow[color];
|
|
31
31
|
|
|
32
32
|
return({
|
|
33
|
+
"&:active": {
|
|
34
|
+
boxShadow: `2px 2px 2px ${Colors.button.glow}`,
|
|
35
|
+
},
|
|
33
36
|
"&:hover": {
|
|
34
|
-
background: `linear-gradient(180deg, ${
|
|
37
|
+
background: `linear-gradient(180deg, ${shadow} 0%, ${hover} 20%, ${hover} 80%, ${shadow} 100%) !important`,
|
|
35
38
|
fontWeight: "normal",
|
|
36
39
|
},
|
|
37
|
-
background: `linear-gradient(180deg, ${hover} 0%, ${normal}
|
|
40
|
+
background: `linear-gradient(180deg, ${hover} 0%, ${normal} 20%, ${normal} 80%, ${hover} 100%) !important`,
|
|
38
41
|
color: `${Colors.black} !important`,
|
|
39
42
|
});
|
|
40
43
|
};
|