diff --git a/projects/packages/forms/changelog/fix-forms-sidebar-spacing b/projects/packages/forms/changelog/fix-forms-sidebar-spacing new file mode 100644 index 0000000000000..74b5abcdd328a --- /dev/null +++ b/projects/packages/forms/changelog/fix-forms-sidebar-spacing @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Forms: fix spacing issue in sidebar settings diff --git a/projects/packages/forms/src/blocks/contact-form/components/jetpack-field-checkbox.js b/projects/packages/forms/src/blocks/contact-form/components/jetpack-field-checkbox.js index d6d18dc61379f..54608cb294afb 100644 --- a/projects/packages/forms/src/blocks/contact-form/components/jetpack-field-checkbox.js +++ b/projects/packages/forms/src/blocks/contact-form/components/jetpack-field-checkbox.js @@ -74,7 +74,6 @@ function JetpackFieldCheckbox( props ) { setAttributes( { required: value } ) } help={ __( 'You can edit the "required" label in the editor', 'jetpack-forms' ) } diff --git a/projects/packages/forms/src/blocks/contact-form/components/jetpack-field-controls.js b/projects/packages/forms/src/blocks/contact-form/components/jetpack-field-controls.js index 793ec274e196e..f9cefdd0bed6c 100644 --- a/projects/packages/forms/src/blocks/contact-form/components/jetpack-field-controls.js +++ b/projects/packages/forms/src/blocks/contact-form/components/jetpack-field-controls.js @@ -109,7 +109,6 @@ const JetpackFieldControls = ( { setAttributes( { required: value } ) } help={ __( 'You can edit the "required" label in the editor', 'jetpack-forms' ) } @@ -170,9 +169,7 @@ const JetpackFieldControls = ( { - { fieldSettings.filter( Boolean ).map( ( elt, index ) => ( -
{ elt }
- ) ) } + <>{ fieldSettings }
{ index: 1, element: ( ( { value, diff --git a/projects/packages/forms/src/blocks/contact-form/editor.scss b/projects/packages/forms/src/blocks/contact-form/editor.scss index 825c8dfd91a5e..d8279a34e42bb 100644 --- a/projects/packages/forms/src/blocks/contact-form/editor.scss +++ b/projects/packages/forms/src/blocks/contact-form/editor.scss @@ -267,16 +267,6 @@ .components-base-control { margin-top: -1px; margin-bottom: -3px; - - &.jetpack-field-label__required { - .components-form-toggle { - margin: 2px 8px 0 16px; - } - - .components-toggle-control__label { - word-break: normal; - } - } } .rich-text.jetpack-field-label__input {