From 860e7e057afed58a499bf6e6b8a4e69bcaa3e6e1 Mon Sep 17 00:00:00 2001 From: gilbert-hernandez Date: Mon, 2 Dec 2024 15:04:01 -0700 Subject: [PATCH] KAD-3760 fix highlight label icon size --- .../blocks/class-kadence-blocks-navigation-link-block.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/blocks/class-kadence-blocks-navigation-link-block.php b/includes/blocks/class-kadence-blocks-navigation-link-block.php index b328acbac..119d75beb 100644 --- a/includes/blocks/class-kadence-blocks-navigation-link-block.php +++ b/includes/blocks/class-kadence-blocks-navigation-link-block.php @@ -237,6 +237,12 @@ public function build_css( $attributes, $css, $unique_id, $unique_style_id ) { $css->set_selector( '.wp-block-kadence-navigation .navigation .menu-container ul .kb-nav-link-' . $unique_id . ' .sub-menu .kb-nav-label-description' ); $css->render_typography( $attributes, 'dropdownDescriptionTypography' ); + // navigation highlight icon size + if ( ! empty($attributes['highlightIcon']) ) { + $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'); + } return $css->css_output(); }