@thecb/components 10.6.5-beta.0 → 10.6.5-beta.2
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 +11 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/payment-button-bar/PaymentButtonBar.js +6 -4
- package/src/components/molecules/radio-section/RadioSection.js +2 -1
package/package.json
CHANGED
|
@@ -25,7 +25,9 @@ const PaymentButtonBar = ({
|
|
|
25
25
|
hideBackButton = false,
|
|
26
26
|
buttonGroupStyles,
|
|
27
27
|
hideAdditionalButton = false,
|
|
28
|
-
additionalButton
|
|
28
|
+
additionalButton,
|
|
29
|
+
nextButtonTestId = null,
|
|
30
|
+
backButtonTestId = null
|
|
29
31
|
}) => {
|
|
30
32
|
const { isMobile } = useContext(ThemeContext);
|
|
31
33
|
|
|
@@ -36,7 +38,7 @@ const PaymentButtonBar = ({
|
|
|
36
38
|
url={cancelURL}
|
|
37
39
|
variant={backButtonVariant}
|
|
38
40
|
extraStyles={isMobile && "flex-grow: 1"}
|
|
39
|
-
dataQa={cancelText}
|
|
41
|
+
dataQa={backButtonTestId || cancelText}
|
|
40
42
|
aria-labelledby={`${kebabCaseString(cancelText)}-button`}
|
|
41
43
|
role="link"
|
|
42
44
|
/>
|
|
@@ -60,7 +62,7 @@ const PaymentButtonBar = ({
|
|
|
60
62
|
text={redirectText}
|
|
61
63
|
variant={forwardButtonVariant}
|
|
62
64
|
extraStyles={isMobile && "flex-grow: 1"}
|
|
63
|
-
dataQa={redirectText}
|
|
65
|
+
dataQa={nextButtonTestId || redirectText}
|
|
64
66
|
disabled={isForwardButtonDisabled}
|
|
65
67
|
aria-labelledby={`${kebabCaseString(redirectText)}-button`}
|
|
66
68
|
role={forwardButtonAriaRole}
|
|
@@ -73,7 +75,7 @@ const PaymentButtonBar = ({
|
|
|
73
75
|
action={forwardButtonAction}
|
|
74
76
|
isLoading={forwardButtonLoading}
|
|
75
77
|
extraStyles={isMobile && "flex-grow: 1"}
|
|
76
|
-
dataQa={forwardButtonText}
|
|
78
|
+
dataQa={nextButtonTestId || forwardButtonText}
|
|
77
79
|
disabled={isForwardButtonDisabled}
|
|
78
80
|
aria-labelledby={`${kebabCaseString(forwardButtonText)}-button`}
|
|
79
81
|
role={forwardButtonAriaRole}
|
|
@@ -58,6 +58,7 @@ const RadioSection = ({
|
|
|
58
58
|
ariaDescribedBy,
|
|
59
59
|
isSectionRequired = false,
|
|
60
60
|
groupedSections,
|
|
61
|
+
borderOverride,
|
|
61
62
|
...rest
|
|
62
63
|
}) => {
|
|
63
64
|
const [focused, setFocused] = useState(null);
|
|
@@ -98,7 +99,7 @@ const RadioSection = ({
|
|
|
98
99
|
return (
|
|
99
100
|
<Box
|
|
100
101
|
padding="1px"
|
|
101
|
-
border={`1px solid ${themeValues.borderColor}`}
|
|
102
|
+
border={borderOverride || `1px solid ${themeValues.borderColor}`}
|
|
102
103
|
borderRadius="4px"
|
|
103
104
|
extraStyles={containerStyles}
|
|
104
105
|
role="radiogroup"
|