Skip to content

Commit

Permalink
Update class-kadence-blocks-navigation-link-block.php
Browse files Browse the repository at this point in the history
  • Loading branch information
oakesjosh committed Dec 4, 2024
1 parent 09984a8 commit 3d799d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ) && !empty( $attributes['highlightIcon'][0]['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');
Expand Down

0 comments on commit 3d799d9

Please sign in to comment.