Skip to content

Commit

Permalink
Merge pull request #161 from tobeycodes/patch-1
Browse files Browse the repository at this point in the history
Update classname
  • Loading branch information
dkotter committed Oct 26, 2023
2 parents 80a6f91 + 3d58ed7 commit 48bf43b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/blocks/safe-svg/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const SafeSvgBlockEdit = ( props ) => {
} = attributes;
const blockProps = useBlockProps(
{
className:` safe-svg-cover`,
className:` wp-block-safe-svg-svg-icon safe-svg-cover`,
style: {
textAlign: alignment,
}
Expand Down
2 changes: 1 addition & 1 deletion includes/blocks/safe-svg/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function render_block_callback( $attributes ) {
return apply_filters(
'safe_svg_inline_markup',
sprintf(
'<div class="safe-svg-cover" style="text-align: %s;">
'<div class="wp-block-safe-svg-svg-icon safe-svg-cover" style="text-align: %s;">
<div class="safe-svg-inside %s%s" style="width: %spx; height: %spx; background-color: var(--wp--preset--color--%s); color: var(--wp--preset--color--%s); padding-top: %s; padding-right: %s; padding-bottom: %s; padding-left: %s; margin-top: %s; margin-right: %s; margin-bottom: %s; margin-left: %s;">%s</div>
</div>',
isset( $attributes['alignment'] ) ? esc_attr( $attributes['alignment'] ) : 'left',
Expand Down

0 comments on commit 48bf43b

Please sign in to comment.