@wordpress/block-editor 14.3.13 → 14.3.14

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.
@@ -706,8 +706,6 @@ _::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-b
706
706
  }
707
707
  .block-editor-default-block-appender .block-editor-default-block-appender__content {
708
708
  opacity: 0.62;
709
- }
710
- :where(body .is-layout-constrained) .block-editor-default-block-appender > :first-child, :where(.wp-site-blocks) .block-editor-default-block-appender > :first-child {
711
709
  margin-block-start: 0;
712
710
  margin-block-end: 0;
713
711
  }
@@ -706,8 +706,6 @@ _::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-b
706
706
  }
707
707
  .block-editor-default-block-appender .block-editor-default-block-appender__content {
708
708
  opacity: 0.62;
709
- }
710
- :where(body .is-layout-constrained) .block-editor-default-block-appender > :first-child, :where(.wp-site-blocks) .block-editor-default-block-appender > :first-child {
711
709
  margin-block-start: 0;
712
710
  margin-block-end: 0;
713
711
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-editor",
3
- "version": "14.3.13",
3
+ "version": "14.3.14",
4
4
  "description": "Generic block editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -88,5 +88,5 @@
88
88
  "publishConfig": {
89
89
  "access": "public"
90
90
  },
91
- "gitHead": "b7fe267e2fb0c3cb1a37a9dda16f7eebcf5089c9"
91
+ "gitHead": "da8043074e6e71d3ce0495fb29738e876480b7d2"
92
92
  }
@@ -24,20 +24,11 @@
24
24
  .block-editor-default-block-appender__content {
25
25
  // Set the opacity of the initial block appender to the same as placeholder text in an empty Paragraph block.
26
26
  opacity: 0.62;
27
- }
28
-
29
- // In "constrained" layout containers, the first and last paragraphs have their margins zeroed out.
30
- // In the case of this appender, it needs to apply those same rules to avoid layout shifts.
31
- // Such shifts happen when the bottom margin of the Title block has been set to less than the default 1em margin of paragraphs.
32
- :where(body .is-layout-constrained) &,
33
- :where(.wp-site-blocks) & {
34
- > :first-child {
35
- margin-block-start: 0;
36
- margin-block-end: 0;
37
- }
38
27
 
39
- // Since this appender will only ever appear on an entirely empty document, we don't account for last-child.
40
- // This is also because it will never be the last child, the block inserter that sits in this appender is the last child.
28
+ // The following prevents user agent styles from applying margins to the appender's inner paragraph.
29
+ // This in turn prevents layout shift due to layout styles removing margins from first and last children.
30
+ margin-block-start: 0;
31
+ margin-block-end: 0;
41
32
  }
42
33
 
43
34
  // Dropzone.