@thecb/components 7.10.1-beta.7 → 7.10.1-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": "7.10.1-beta.7",
3
+ "version": "7.10.1-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",
@@ -119,9 +119,7 @@ const RadioSection = ({
119
119
  <Stack childGap="0">
120
120
  <Box
121
121
  padding={
122
- section.hideRadioButton
123
- ? "1.5rem"
124
- : "1.25rem 1.5rem 1.25rem 1.25rem"
122
+ section.hideRadioButton ? "1.5rem" : "1.25rem 1.5rem"
125
123
  }
126
124
  background={
127
125
  section.disabled
@@ -160,7 +158,9 @@ const RadioSection = ({
160
158
  <Box padding="0">
161
159
  <RadioButton
162
160
  name={
163
- createIdFromString(section.title) || section.id
161
+ typeof section.title === "string"
162
+ ? createIdFromString(section.title)
163
+ : section.id
164
164
  }
165
165
  ariaDescribedBy={ariaDescribedBy}
166
166
  radioOn={openSection === section.id}