diff --git a/blocks/components/editable/style.scss b/blocks/components/editable/style.scss index 1a143b68d8ea17..468315ca41743b 100644 --- a/blocks/components/editable/style.scss +++ b/blocks/components/editable/style.scss @@ -1,3 +1,13 @@ -.blocks-editable:focus { - outline: none; +.blocks-editable { + > p:first-child { + margin-top: 0; + } + + > p:last-child { + margin-bottom: 0; + } + + &:focus { + outline: none; + } } diff --git a/editor/modes/visual-editor/style.scss b/editor/modes/visual-editor/style.scss index 60c27fb03eac4e..04ef444ebc526b 100644 --- a/editor/modes/visual-editor/style.scss +++ b/editor/modes/visual-editor/style.scss @@ -8,11 +8,6 @@ font-size: $editor-font-size; line-height: $editor-line-height; } - - p { - margin-top: 0; - margin-bottom: 0; - } } .editor-visual-editor__block {