@thecb/components 9.2.4-beta.8 → 9.2.4-beta.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "9.2.4-beta.8",
3
+ "version": "9.2.4-beta.9",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -179,7 +179,7 @@ const RadioSection = ({
179
179
  : () => toggleOpenSection(section.id)
180
180
  }
181
181
  tabIndex="-1"
182
- aria-required={!!section?.required}
182
+ isRequired={!!section?.required}
183
183
  />
184
184
  </Box>
185
185
  )}
@@ -20,6 +20,7 @@ const RadioButton = ({
20
20
  themeValues,
21
21
  ariaLabelledBy = "",
22
22
  ariaLabel = null,
23
+ isRequired = false,
23
24
  ...rest
24
25
  }) => {
25
26
  const buttonBorder = {
@@ -94,6 +95,7 @@ const RadioButton = ({
94
95
  onClick={toggleRadio}
95
96
  aria-describedby={ariaDescribedBy}
96
97
  tabIndex="-1"
98
+ required={isRequired}
97
99
  {...extraProps}
98
100
  />
99
101
  <Motion