@thecb/components 9.2.4-beta.3 → 9.2.4-beta.4
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 +3 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/radio-section/RadioSection.js +3 -2
- package/src/components/molecules/radio-section/RadioSection.stories.js +6 -1
package/package.json
CHANGED
|
@@ -123,9 +123,10 @@ const RadioSection = ({
|
|
|
123
123
|
key={`item-${section.id}`}
|
|
124
124
|
extraStyles={borderStyles}
|
|
125
125
|
role="radio"
|
|
126
|
+
aria-label={section.title}
|
|
126
127
|
aria-checked={openSection === section.id}
|
|
127
128
|
aria-disabled={section.disabled}
|
|
128
|
-
required={section?.required}
|
|
129
|
+
required={section?.required || isRequired}
|
|
129
130
|
>
|
|
130
131
|
<Stack childGap="0">
|
|
131
132
|
<Box
|
|
@@ -179,7 +180,7 @@ const RadioSection = ({
|
|
|
179
180
|
: () => toggleOpenSection(section.id)
|
|
180
181
|
}
|
|
181
182
|
tabIndex="-1"
|
|
182
|
-
required={section?.required}
|
|
183
|
+
required={section?.required || isRequired}
|
|
183
184
|
/>
|
|
184
185
|
</Box>
|
|
185
186
|
)}
|
|
@@ -52,7 +52,12 @@ const sections = [
|
|
|
52
52
|
rightIcons: cardIcons,
|
|
53
53
|
required: true
|
|
54
54
|
},
|
|
55
|
-
{
|
|
55
|
+
{
|
|
56
|
+
id: "new-bank-account-section",
|
|
57
|
+
title: "New Bank Account",
|
|
58
|
+
content: <div>Content 1</div>,
|
|
59
|
+
required: true
|
|
60
|
+
},
|
|
56
61
|
{ id: "baz", title: "Baz", content: <div>Content 2</div> }
|
|
57
62
|
];
|
|
58
63
|
|