Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Avoid using CSS variables for block gap styles (#37360)
Co-authored-by: André <[email protected]>
- Loading branch information
Showing
with
88 additions
and 236 deletions.
- +2 −2 docs/reference-guides/core-blocks.md
- +14 −6 lib/block-supports/layout.php
- +0 −53 lib/block-supports/spacing.php
- +14 −3 lib/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php
- +1 −0 packages/block-editor/src/hooks/layout.js
- +2 −1 packages/block-editor/src/hooks/style.js
- +0 −2 packages/block-editor/src/hooks/test/style.js
- +4 −6 packages/block-editor/src/layouts/flex.js
- +8 −6 packages/block-editor/src/layouts/flow.js
- +1 −2 packages/block-library/src/columns/block.json
- +1 −5 packages/block-library/src/navigation/block.json
- +0 −142 phpunit/block-supports/spacing-test.php
- +41 −8 phpunit/class-wp-theme-json-test.php
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -215,6 +215,7 @@ export const withLayoutStyles = createHigherOrderComponent( | ||
<LayoutStyle | ||
selector={ `.wp-container-${ id }` } | ||
layout={ usedLayout } | ||
style={ attributes?.style } | ||
/>, | ||
element | ||
) } | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -24,11 +24,10 @@ | ||
"link": true | ||
}, | ||
"spacing": { | ||
"margin": [ "top", "bottom" ], | ||
"padding": true, | ||
"__experimentalDefaultControls": { | ||
"padding": true | ||
} | ||
} | ||
}, | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -92,11 +92,7 @@ | ||
} | ||
}, | ||
"spacing": { | ||
"units": [ "px", "em", "rem", "vh", "vw" ] | ||
}, | ||
"__experimentalLayout": { | ||
"allowSwitching": false, | ||
Oops, something went wrong.