@thecb/components 11.6.6 → 11.6.7
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/dist/index.cjs.js
CHANGED
|
@@ -47240,13 +47240,18 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47240
47240
|
backButtonTestId = _ref$backButtonTestId === void 0 ? null : _ref$backButtonTestId;
|
|
47241
47241
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
47242
47242
|
isMobile = _useContext.isMobile;
|
|
47243
|
-
|
|
47243
|
+
|
|
47244
|
+
// cancel URLs are external (back to client system)
|
|
47245
|
+
var handleCancel = function handleCancel() {
|
|
47246
|
+
window.location.href = cancelURL;
|
|
47247
|
+
};
|
|
47248
|
+
var backButton = !!cancelURL && !!cancelText ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
47244
47249
|
text: cancelText,
|
|
47245
|
-
|
|
47250
|
+
action: handleCancel,
|
|
47246
47251
|
variant: backButtonVariant,
|
|
47247
47252
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47248
47253
|
dataQa: backButtonTestId || cancelText,
|
|
47249
|
-
"aria-
|
|
47254
|
+
"aria-label": "".concat(cancelText, ", navigate back to previous site"),
|
|
47250
47255
|
role: "link"
|
|
47251
47256
|
}) : backButtonAction && /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
47252
47257
|
text: "Back",
|
|
@@ -47254,7 +47259,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47254
47259
|
action: backButtonAction,
|
|
47255
47260
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47256
47261
|
dataQa: "Back",
|
|
47257
|
-
"aria-
|
|
47262
|
+
"aria-label": "Back, navigate to previous page",
|
|
47258
47263
|
role: "link"
|
|
47259
47264
|
});
|
|
47260
47265
|
var forwardButton = !!redirectURL ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
|