Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update classname #161

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading