@unitedstatespowersquadrons/components 1.2.5 → 1.2.6-pre.2

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 CHANGED
@@ -104,6 +104,14 @@ const specificColors = {
104
104
  purple: "#9955FF",
105
105
  red: "#DD7777",
106
106
  },
107
+ shadow: {
108
+ blue: "#4477DD",
109
+ gray: "#AAAAAA",
110
+ green: "#44AA44",
111
+ orange: "#DD7722",
112
+ purple: "#7733DD",
113
+ red: "#BB5555",
114
+ },
107
115
  },
108
116
  border: "gray",
109
117
  shadow: "#AAAAAA",
package/Styles.tsx CHANGED
@@ -25,12 +25,16 @@ const hoverColorStyles = {
25
25
  };
26
26
 
27
27
  const colorizeButton = (color: ButtonColorName) => {
28
+ const hover = Colors.button.background.hover[color];
29
+ const normal = Colors.button.background.normal[color];
30
+ const shadow = Colors.button.background.shadow[color];
31
+
28
32
  return({
29
33
  "&:hover": {
30
- backgroundColor: `${Colors.button.background.hover[color]} !important`,
34
+ background: `linear-gradient(180deg, ${normal}, ${hover}, ${hover}, ${normal}) !important`,
31
35
  fontWeight: "normal",
32
36
  },
33
- backgroundColor: `${Colors.button.background.normal[color]} !important`,
37
+ background: `linear-gradient(180deg, ${shadow}, ${normal}, ${normal}, ${shadow}) !important`,
34
38
  color: `${Colors.black} !important`,
35
39
  });
36
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unitedstatespowersquadrons/components",
3
- "version": "1.2.5",
3
+ "version": "1.2.6-pre.2",
4
4
  "description": "USPS shared React components library",
5
5
  "main": "index.tsx",
6
6
  "scripts": {