@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.esm.js
CHANGED
|
@@ -47232,13 +47232,18 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47232
47232
|
backButtonTestId = _ref$backButtonTestId === void 0 ? null : _ref$backButtonTestId;
|
|
47233
47233
|
var _useContext = useContext(ThemeContext),
|
|
47234
47234
|
isMobile = _useContext.isMobile;
|
|
47235
|
-
|
|
47235
|
+
|
|
47236
|
+
// cancel URLs are external (back to client system)
|
|
47237
|
+
var handleCancel = function handleCancel() {
|
|
47238
|
+
window.location.href = cancelURL;
|
|
47239
|
+
};
|
|
47240
|
+
var backButton = !!cancelURL && !!cancelText ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
47236
47241
|
text: cancelText,
|
|
47237
|
-
|
|
47242
|
+
action: handleCancel,
|
|
47238
47243
|
variant: backButtonVariant,
|
|
47239
47244
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47240
47245
|
dataQa: backButtonTestId || cancelText,
|
|
47241
|
-
"aria-
|
|
47246
|
+
"aria-label": "".concat(cancelText, ", navigate back to previous site"),
|
|
47242
47247
|
role: "link"
|
|
47243
47248
|
}) : backButtonAction && /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
47244
47249
|
text: "Back",
|
|
@@ -47246,7 +47251,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47246
47251
|
action: backButtonAction,
|
|
47247
47252
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47248
47253
|
dataQa: "Back",
|
|
47249
|
-
"aria-
|
|
47254
|
+
"aria-label": "Back, navigate to previous page",
|
|
47250
47255
|
role: "link"
|
|
47251
47256
|
});
|
|
47252
47257
|
var forwardButton = !!redirectURL ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
|