Skip to content

Commit

Permalink
checkbox styling fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gargadobe committed Feb 20, 2024
1 parent dd417e9 commit 3ed663d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions blocks/form/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ main .form form .form-radio-wrapper {
gap: 8px;
}

main .form form fieldset>.form-radio-wrapper:first-of-type,
main .form form fieldset>.form-checkbox-wrapper:first-of-type {
main .form form fieldset>.form-radio-wrapper,
main .form form fieldset>.form-checkbox-wrapper {
margin: var(--form-field-gap);
}

Expand Down
3 changes: 2 additions & 1 deletion blocks/form/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,9 @@ export default class DocBaseFormToAF {
*/
#handleMultiValues(item, key) {
let values;
let separator = item?.fieldType === 'checkbox-group' ? ';':',';

Check failure on line 220 in blocks/form/transform.js

View workflow job for this annotation

GitHub Actions / build

'separator' is never reassigned. Use 'const' instead

Check failure on line 220 in blocks/form/transform.js

View workflow job for this annotation

GitHub Actions / build

Operator ':' must be spaced
if (item && item[key] && typeof item[key] === 'string') {
values = item[key]?.split(';').map((value) => value.trim());
values = item[key]?.split(separator).map((value) => value.trim());
item[key] = values;
}
}
Expand Down

0 comments on commit 3ed663d

Please sign in to comment.