@unitedstatespowersquadrons/components 1.2.5 → 1.2.6-pre.10

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,8 +104,17 @@ 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",
117
+ glow: "rgba(0, 200, 200, 0.5)",
109
118
  shadow: "#AAAAAA",
110
119
  },
111
120
  exam: {
package/Styles.tsx CHANGED
@@ -25,12 +25,18 @@ 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({
33
+ "&:active": { boxShadow: `0 0 2px 2px ${Colors.button.glow}` },
34
+ "&:focus": { boxShadow: `0 0 2px 2px ${Colors.button.glow}` },
29
35
  "&:hover": {
30
- backgroundColor: `${Colors.button.background.hover[color]} !important`,
36
+ background: `linear-gradient(180deg, ${shadow} 0%, ${hover} 20%, ${hover} 80%, ${shadow} 100%) !important`,
31
37
  fontWeight: "normal",
32
38
  },
33
- backgroundColor: `${Colors.button.background.normal[color]} !important`,
39
+ background: `linear-gradient(180deg, ${hover} 0%, ${normal} 20%, ${normal} 80%, ${hover} 100%) !important`,
34
40
  color: `${Colors.black} !important`,
35
41
  });
36
42
  };
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.10",
4
4
  "description": "USPS shared React components library",
5
5
  "main": "index.tsx",
6
6
  "scripts": {