Skip to content

Commit

Permalink
KAD-3760 fix highlight label icon size
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbert-hernandez committed Dec 2, 2024
1 parent 7abc0d3 commit 860e7e0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 860e7e0

Please sign in to comment.