@unitedstatespowersquadrons/components 1.2.22-1 → 1.2.23

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.
@@ -10,6 +10,7 @@ const useStyles = createUseStyles({
10
10
  border: "none",
11
11
  padding: "0",
12
12
  },
13
+ wrapperLink: { textDecoration: "none" },
13
14
  });
14
15
 
15
16
  interface CoreBaseActionButtonProps {
@@ -101,7 +102,7 @@ const BaseActionButton = (props: BaseActionButtonProps) => {
101
102
 
102
103
  return(
103
104
  <a
104
- className={linkClassName}
105
+ className={classNames(classes.wrapperLink, linkClassName)}
105
106
  href={href}
106
107
  id={id}
107
108
  rel={newTab ? "noreferrer" : undefined}
package/IconButton.tsx CHANGED
@@ -72,7 +72,7 @@ const IconButton = (props: IconButtonProps) => {
72
72
  </BaseActionButton>
73
73
  );
74
74
  } else if ("href" in props) {
75
- const { href, linkClassName } = props;
75
+ const { href, linkClassName, newTab } = props;
76
76
 
77
77
  return(
78
78
  <BaseActionButton
@@ -80,6 +80,7 @@ const IconButton = (props: IconButtonProps) => {
80
80
  href={href}
81
81
  id={id}
82
82
  linkClassName={classNames(classes.wrapperLink, linkClassName)}
83
+ newTab={newTab}
83
84
  title={title}
84
85
  >
85
86
  {configuredIcon}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unitedstatespowersquadrons/components",
3
- "version": "1.2.22-1",
3
+ "version": "1.2.23",
4
4
  "description": "USPS shared React components library",
5
5
  "main": "index.tsx",
6
6
  "scripts": {