Skip to content

Commit

Permalink
fixing issue with icon border radius
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-c-woodard committed Jul 1, 2024
1 parent eac0c50 commit b0ed58a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit b0ed58a

Please sign in to comment.