@comicrelief/storybook 2.4.1 → 2.5.0
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
|
@@ -159,10 +159,14 @@ class MarketingConsentCheckbox extends Component {
|
|
|
159
159
|
const bgStyle = 'form__field--background';
|
|
160
160
|
const customMessage = typeof item.customMessage !== 'undefined' ? item.customMessage : null;
|
|
161
161
|
const subFieldShowing = !(this.state.checkboxValidation[checkbox].isFieldsHidden);
|
|
162
|
+
const additionalFieldGroupInfo = typeof item.additionalFieldGroupInfo !== 'undefined' ? item.additionalFieldGroupInfo : null;
|
|
162
163
|
|
|
163
164
|
return (
|
|
164
165
|
<div key={item.id} className={`form__field--wrapper form__field-wrapper--checkbox form__field-wrapper--background form__field-wrapper--${item.name} ${(subFieldShowing ? 'showing' : '')}`}>
|
|
165
166
|
<p className="form__fieldset--label" aria-label={`Can we contact you by ${item.name}?`}>{item.text}</p>
|
|
167
|
+
|
|
168
|
+
{ additionalFieldGroupInfo && <p className="form__fieldset--additional-info">{additionalFieldGroupInfo}</p> }
|
|
169
|
+
|
|
166
170
|
{ customMessage && <p>{customMessage}</p> }
|
|
167
171
|
<div id={`field-wrapper--${item.name}`} className="form__field--wrapper" >
|
|
168
172
|
{
|