Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
oakesjosh committed Dec 4, 2024
2 parents 0ffba71 + 59d6eba commit 6ed7dda
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'][0]['icon'] ) && !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');
}
return $css->css_output();
}

Expand Down

0 comments on commit 6ed7dda

Please sign in to comment.