From cd004af74fc0a563dbe4c805344fecb14d62b0a7 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Mon, 7 Mar 2022 17:53:33 -0300 Subject: [PATCH] Uses wp default presets css varables to set colors. #674. --- .../blocks/item-gallery/block.json | 3 ++ .../blocks/item-gallery/edit.js | 2 +- .../blocks/item-gallery/save.php | 30 +++++++++++++++++-- 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/src/views/gutenberg-blocks/blocks/item-gallery/block.json b/src/views/gutenberg-blocks/blocks/item-gallery/block.json index 566f9604b..82a3341e3 100644 --- a/src/views/gutenberg-blocks/blocks/item-gallery/block.json +++ b/src/views/gutenberg-blocks/blocks/item-gallery/block.json @@ -118,6 +118,9 @@ "background": true, "gradients": true, "link": true + }, + "spacing": { + "padding": true } }, "editorScript": "item-gallery", diff --git a/src/views/gutenberg-blocks/blocks/item-gallery/edit.js b/src/views/gutenberg-blocks/blocks/item-gallery/edit.js index 49d1d97f0..7ab1d10a3 100644 --- a/src/views/gutenberg-blocks/blocks/item-gallery/edit.js +++ b/src/views/gutenberg-blocks/blocks/item-gallery/edit.js @@ -240,7 +240,7 @@ export default function ({ attributes, setAttributes, className, isSelected, cli { openLightboxOnClick ? $block_custom_css,