@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.
- package/build/button/edit.js +1 -1
- package/build/button/edit.js.map +1 -1
- package/build/image/edit.js +1 -1
- package/build/image/edit.js.map +1 -1
- package/build/image/image.js +3 -3
- package/build/image/image.js.map +1 -1
- package/build/spacer/edit.js +5 -2
- package/build/spacer/edit.js.map +1 -1
- package/build-module/button/edit.js +1 -1
- package/build-module/button/edit.js.map +1 -1
- package/build-module/image/edit.js +1 -1
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/image.js +3 -3
- package/build-module/image/image.js.map +1 -1
- package/build-module/spacer/edit.js +5 -2
- package/build-module/spacer/edit.js.map +1 -1
- package/build-style/editor-rtl.css +1 -0
- package/build-style/editor.css +1 -0
- package/build-style/spacer/editor-rtl.css +1 -0
- package/build-style/spacer/editor.css +1 -0
- package/package.json +10 -10
- package/src/button/edit.js +1 -1
- package/src/file/index.php +1 -1
- package/src/image/edit.js +1 -1
- package/src/image/image.js +3 -3
- package/src/image/index.php +2 -2
- package/src/navigation/index.php +5 -7
- package/src/query/index.php +1 -1
- package/src/query-pagination-numbers/index.php +9 -6
- package/src/search/index.php +14 -6
- package/src/spacer/edit.js +7 -2
- package/src/spacer/editor.scss +2 -0
package/src/spacer/edit.js
CHANGED
|
@@ -93,9 +93,14 @@ const SpacerEdit = ( {
|
|
|
93
93
|
return editorSettings?.disableCustomSpacingSizes;
|
|
94
94
|
} );
|
|
95
95
|
const { orientation } = context;
|
|
96
|
-
const {
|
|
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 =
|
|
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 =
|