@unitedstatespowersquadrons/components 1.2.6-pre.1 → 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
@@ -114,6 +114,7 @@ const specificColors = {
114
114
  },
115
115
  },
116
116
  border: "gray",
117
+ glow: "rgba(0, 200, 200, 0.5)",
117
118
  shadow: "#AAAAAA",
118
119
  },
119
120
  exam: {
package/Styles.tsx CHANGED
@@ -30,11 +30,13 @@ const colorizeButton = (color: ButtonColorName) => {
30
30
  const shadow = Colors.button.background.shadow[color];
31
31
 
32
32
  return({
33
+ "&:active": { boxShadow: `0 0 2px 2px ${Colors.button.glow}` },
34
+ "&:focus": { boxShadow: `0 0 2px 2px ${Colors.button.glow}` },
33
35
  "&:hover": {
34
- backgroundColor: `linear-gradient(180deg, ${normal}, ${hover}, ${hover}, ${normal}) !important`,
36
+ background: `linear-gradient(180deg, ${shadow} 0%, ${hover} 20%, ${hover} 80%, ${shadow} 100%) !important`,
35
37
  fontWeight: "normal",
36
38
  },
37
- backgroundColor: `linear-gradient(180deg, ${shadow}, ${normal}, ${normal}, ${shadow}) !important`,
39
+ background: `linear-gradient(180deg, ${hover} 0%, ${normal} 20%, ${normal} 80%, ${hover} 100%) !important`,
38
40
  color: `${Colors.black} !important`,
39
41
  });
40
42
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unitedstatespowersquadrons/components",
3
- "version": "1.2.6-pre.1",
3
+ "version": "1.2.6-pre.10",
4
4
  "description": "USPS shared React components library",
5
5
  "main": "index.tsx",
6
6
  "scripts": {