From b0ed58a2ceca8c4b02989b166fcd08c7e96d9955 Mon Sep 17 00:00:00 2001 From: Mark Woodard Date: Mon, 1 Jul 2024 09:38:38 -0500 Subject: [PATCH] fixing issue with icon border radius --- includes/blocks/class-kadence-blocks-navigation-link-block.php | 2 +- src/blocks/navigation-link/components/backend-styles/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/blocks/class-kadence-blocks-navigation-link-block.php b/includes/blocks/class-kadence-blocks-navigation-link-block.php index 6b41c415c..45f08330d 100644 --- a/includes/blocks/class-kadence-blocks-navigation-link-block.php +++ b/includes/blocks/class-kadence-blocks-navigation-link-block.php @@ -376,7 +376,7 @@ public function sized_dynamic_styles( $css, $attributes, $unique_id, $size = 'De //normal styles $css->set_selector( '.wp-block-kadence-navigation-link' . $unique_id . ' > .link-drop-wrap > a > .link-drop-title-wrap > .link-media-container' ); $css->add_property( 'background-color', $css->render_color( $media_style_background ) ); - $css->add_property( 'border-radius', $css->render_size( $media_style_border_radius ) ); + $css->add_property( 'border-radius', $css->render_size( $media_style_border_radius, 'px' ) ); $css->add_property( 'padding', $css->render_measure( $media_style_padding, 'px' ) ); if ( $sized_attributes['mediaAlign'] == 'left' ) { $css->add_property( 'order', '-1' ); diff --git a/src/blocks/navigation-link/components/backend-styles/index.js b/src/blocks/navigation-link/components/backend-styles/index.js index d1845e3d1..2c19ab7f6 100644 --- a/src/blocks/navigation-link/components/backend-styles/index.js +++ b/src/blocks/navigation-link/components/backend-styles/index.js @@ -768,7 +768,7 @@ export default function BackendStyles(props) { `.wp-block-kadence-navigation-link${uniqueID} > .link-drop-wrap > a > .link-drop-title-wrap > .link-media-container` ); css.add_property('background-color', css.render_color(previewMediaStyleBackground)); - css.add_property('border-radius', css.render_size(previewMediaStyleBorderRadius)); + css.add_property('border-radius', css.render_size(previewMediaStyleBorderRadius, 'px')); css.add_property('padding-top', css.render_size(previewMediaStylePadding[0], 'px')); css.add_property('padding-right', css.render_size(previewMediaStylePadding[1], 'px')); css.add_property('padding-bottom', css.render_size(previewMediaStylePadding[2], 'px'));