terra-button
Advanced tools
Comparing version 3.60.1 to 3.61.0
@@ -5,2 +5,7 @@ # Changelog | ||
## 3.61.0 - (February 15, 2022) | ||
* Changed | ||
* Added `button` role to anchor butttons. | ||
## 3.60.1 - (December 14, 2021) | ||
@@ -7,0 +12,0 @@ |
@@ -44,3 +44,3 @@ "use strict"; | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
@@ -406,3 +406,4 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
href: href, | ||
ref: refCallback | ||
ref: refCallback, | ||
role: href ? 'button' : undefined | ||
}), buttonLabel); | ||
@@ -409,0 +410,0 @@ } |
{ | ||
"name": "terra-button", | ||
"main": "lib/Button.js", | ||
"version": "3.60.1", | ||
"version": "3.61.0", | ||
"description": "The terra-button component provides users a way to trigger actions in the UI.", | ||
@@ -47,3 +47,3 @@ "repository": { | ||
}, | ||
"gitHead": "7e2b4ffb8f4db441bf7489958f1a5a588a727272" | ||
"gitHead": "6c23a07a2ef0be88d1a92b745df2f3d7db57683f" | ||
} |
@@ -322,2 +322,3 @@ import React from 'react'; | ||
ref={refCallback} | ||
role={href ? 'button' : undefined} | ||
> | ||
@@ -324,0 +325,0 @@ {buttonLabel} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
145889
1053
0