Skip to content

Commit

Permalink
Fixing an issue with icon list links with "none" underline style
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-c-woodard committed Nov 25, 2024
1 parent 2a4a72e commit f836fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/blocks/class-kadence-blocks-icon-list-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function build_css( $attributes, $css, $unique_id, $unique_style_id ) {
}

if( !empty( $attributes['linkUnderline']) && ( $attributes['linkUnderline'] === 'always' || $attributes['linkUnderline'] === 'none' ) ) {
$css->set_selector( '.wp-block-kadence-iconlist.kt-svg-icon-list-items' . $unique_id . ' .wp-block-kadence-listitem>a' );
$css->set_selector( '.wp-block-kadence-iconlist.kt-svg-icon-list-items' . $unique_id . ' .wp-block-kadence-listitem a' );
$css->add_property( 'text-decoration', $attributes['linkUnderline'] === 'always' ? 'underline' : 'none' );
}
if( !empty( $attributes['linkUnderline']) && $attributes['linkUnderline'] === 'hover' ) {
Expand Down

0 comments on commit f836fb9

Please sign in to comment.