@wordpress/block-library 8.28.0 → 8.28.1

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.
@@ -93,9 +93,14 @@ const SpacerEdit = ( {
93
93
  return editorSettings?.disableCustomSpacingSizes;
94
94
  } );
95
95
  const { orientation } = context;
96
- const { orientation: parentOrientation, type } = parentLayout || {};
96
+ const {
97
+ orientation: parentOrientation,
98
+ type,
99
+ default: { type: defaultType } = {},
100
+ } = parentLayout || {};
97
101
  // Check if the spacer is inside a flex container.
98
- const isFlexLayout = type === 'flex';
102
+ const isFlexLayout =
103
+ type === 'flex' || ( ! type && defaultType === 'flex' );
99
104
  // If the spacer is inside a flex container, it should either inherit the orientation
100
105
  // of the parent or use the flex default orientation.
101
106
  const inheritedOrientation =
@@ -42,5 +42,7 @@
42
42
 
43
43
  &.resize-horizontal {
44
44
  margin-bottom: 0;
45
+ // Important is used to have higher specificity than the inline style set by re-resizable library.
46
+ height: 100% !important;
45
47
  }
46
48
  }