We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd16fd8 commit 257954dCopy full SHA for 257954d
src/components/block-wrapper/index.js
@@ -41,8 +41,8 @@ const BlockWrapper = memo( props => {
41
// We force-removed the block alignment wrapper div (see src/blocks.js),
42
// so we need to add our own data-align attribute.
43
'data-align': align,
44
- // Add data-block-style attribute to replace data-block selectors.
45
- 'data-block-style': blockStyle,
+ // Add data-block-style attribute to replace data-block selectors
+ ...( blockStyle ? { 'data-block-style': blockStyle } : {} ),
46
} )
47
48
// Remove the custom CSS names here because we will be adding it in the BlockDiv component, we need to do this for our current styles to work.
0 commit comments