Skip to content

Commit

Permalink
More explicit padding for attribution wrapper.
Browse files Browse the repository at this point in the history
This helps with cross-theme consistency.
  • Loading branch information
boonebgorges committed Jun 10, 2024
1 parent d7f18e2 commit c21f840
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions classes/Cloner.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,19 +275,22 @@ public static function swap_module_attribution_block( $post_content, $module_id
'blockName' => 'core/group',
'attrs' => [
'style' => [
'color' => [
'color' => [
'background' => '#efefef',
],
'spacing' => [
'padding' => '20px',
],
],
'className' => 'openlab-modules-module-attribution-wrapper',
'layout' => [
'type' => 'constrained',
],
],
'innerBlocks' => array( $inner_block ),
'innerHTML' => '<div class="wp-block-group openlab-modules-module-attribution-wrapper has-background" style="background-color:#efefef"></div>',
'innerHTML' => '<div class="wp-block-group openlab-modules-module-attribution-wrapper has-background" style="background-color:#efefef;padding:20px"></div>',
'innerContent' => array(
'<div class="wp-block-group openlab-modules-module-attribution-wrapper has-background" style="background-color:#efefef">',
'<div class="wp-block-group openlab-modules-module-attribution-wrapper has-background" style="background-color:#efefef;padding:20px">',
$inner_block_serialized,
'</div>',
),
Expand Down

0 comments on commit c21f840

Please sign in to comment.