From 6e28f2472dad50b1cce42a949965777a2fcab380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Ka=CC=88gy?= Date: Tue, 21 Feb 2023 11:16:39 +0100 Subject: [PATCH] fix how additional styles get applied --- api/register-block-extension/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/register-block-extension/index.js b/api/register-block-extension/index.js index 408f85a3..604bb6fa 100644 --- a/api/register-block-extension/index.js +++ b/api/register-block-extension/index.js @@ -169,7 +169,7 @@ function registerBlockExtension( const newClassName = classnames(className, additionalClassName); let additionalStyles = null; - let newStyles = {}; + let newStyles = { ...style }; if (typeof inlineStyleGenerator === 'function') { additionalStyles = inlineStyleGenerator(attributes); newStyles = { ...style, ...additionalStyles };