diff --git a/api/register-block-extension/index.js b/api/register-block-extension/index.js index 604bb6fa..ebbd9507 100644 --- a/api/register-block-extension/index.js +++ b/api/register-block-extension/index.js @@ -123,7 +123,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, ...wrapperProps?.style, ...additionalStyles };