Style default attributes for block supports are not respected in dynamic render #52600
Labels
[Package] Block library
/packages/block-library
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
[Type] Bug
An existing feature does not function as intended
Description
Adding default values for at least a color or dimensions.minHeight support in the block.json is not respected when adding them to a dynamic block.
It seems that get_block_wrapper_attributes only generates the style tag when values have been set in the block, but not when a default value is passed in the block type arguments.
I have tried to add the attributes both to the block.json file and the register_block_type $args parameter but neither do the trick.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: