From 09984a8cc5c5f889e3aec4baffe92c9ad3227303 Mon Sep 17 00:00:00 2001 From: Josh Oakes Date: Wed, 4 Dec 2024 15:01:32 -0600 Subject: [PATCH] Update class-kadence-blocks-navigation-link-block.php --- includes/blocks/class-kadence-blocks-navigation-link-block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/blocks/class-kadence-blocks-navigation-link-block.php b/includes/blocks/class-kadence-blocks-navigation-link-block.php index 119d75beb..65c1f009e 100644 --- a/includes/blocks/class-kadence-blocks-navigation-link-block.php +++ b/includes/blocks/class-kadence-blocks-navigation-link-block.php @@ -238,7 +238,7 @@ public function build_css( $attributes, $css, $unique_id, $unique_style_id ) { $css->render_typography( $attributes, 'dropdownDescriptionTypography' ); // navigation highlight icon size - if ( ! empty($attributes['highlightIcon']) ) { + if ( ! empty( $attributes['highlightIcon'] ) && !empty( $attributes['highlightIcon'][0]['size'] ) ) { $css->set_selector('.kb-nav-link-' . $unique_id . ' .link-highlight-label .link-highlight-icon-wrap svg' ); $css->add_property('height', $attributes['highlightIcon'][0]['size'] . 'px'); $css->add_property('width', $attributes['highlightIcon'][0]['size'] . 'px');