Skip to content

Commit

Permalink
Add padding and margin support to the gallery block (#43965)
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Sep 9, 2022
1 parent 5283c7d commit af73244
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Expand Up @@ -266,7 +266,7 @@ Display multiple images in a rich gallery. ([Source](https://github.com/WordPres

- **Name:** core/gallery
- **Category:** media
- **Supports:** align, anchor, color (background, gradients, ~~text~~), spacing (blockGap), units (em, px, rem, vh, vw), ~~html~~
- **Supports:** align, anchor, color (background, gradients, ~~text~~), spacing (blockGap, margin, padding), units (em, px, rem, vh, vw), ~~html~~
- **Attributes:** allowResize, caption, columns, fixedHeight, ids, imageCrop, images, linkTarget, linkTo, shortCodeTransforms, sizeSlug

## Group
Expand Down
2 changes: 2 additions & 0 deletions packages/block-library/src/gallery/block.json
Expand Up @@ -110,6 +110,8 @@
"html": false,
"units": [ "px", "em", "rem", "vh", "vw" ],
"spacing": {
"margin": true,
"padding": true,
"blockGap": [ "horizontal", "vertical" ],
"__experimentalSkipSerialization": [ "blockGap" ],
"__experimentalDefaultControls": {
Expand Down

0 comments on commit af73244

Please sign in to comment.