From 0049d2000f02a346b92ee105cf4e5a61ed944f3f Mon Sep 17 00:00:00 2001 From: Lalo Sanchez Date: Fri, 16 Feb 2024 11:26:06 -0600 Subject: [PATCH] Add specificity to selector --- includes/blocks/class-kadence-blocks-infobox-block.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/blocks/class-kadence-blocks-infobox-block.php b/includes/blocks/class-kadence-blocks-infobox-block.php index fd1af0bf4..e97698b8e 100644 --- a/includes/blocks/class-kadence-blocks-infobox-block.php +++ b/includes/blocks/class-kadence-blocks-infobox-block.php @@ -201,18 +201,18 @@ public function build_css( $attributes, $css, $unique_id, $unique_style_id ) { } } if ( ! empty( $media_icon['size'] ) ) { - $css->set_selector( $base_selector . ' .kt-info-svg-icon, ' . $base_selector . ' .kt-info-svg-icon-flip, ' . $base_selector . ' .kt-blocks-info-box-number' ); + $css->set_selector( $base_selector . ' .kadence-info-box-icon-container .kt-info-svg-icon, ' . $base_selector . ' .kt-info-svg-icon-flip, ' . $base_selector . ' .kt-blocks-info-box-number' ); $css->add_property( 'font-size', $media_icon['size'] . 'px' ); } if ( isset( $media_icon['tabletSize'] ) && is_numeric( $media_icon['tabletSize'] ) ) { $css->set_media_state( 'tablet' ); - $css->set_selector( $base_selector . ' .kt-info-svg-icon, ' . $base_selector . ' .kt-info-svg-icon-flip, ' . $base_selector . ' .kt-blocks-info-box-number' ); + $css->set_selector( $base_selector . ' .kadence-info-box-icon-container .kt-info-svg-icon, ' . $base_selector . ' .kt-info-svg-icon-flip, ' . $base_selector . ' .kt-blocks-info-box-number' ); $css->add_property( 'font-size', $media_icon['tabletSize'] . 'px' ); $css->set_media_state( 'desktop' ); } if ( isset( $media_icon['mobileSize'] ) && is_numeric( $media_icon['mobileSize'] ) ) { $css->set_media_state( 'mobile' ); - $css->set_selector( $base_selector . ' .kt-info-svg-icon, ' . $base_selector . ' .kt-info-svg-icon-flip, ' . $base_selector . ' .kt-blocks-info-box-number' ); + $css->set_selector( $base_selector . ' .kadence-info-box-icon-container .kt-info-svg-icon, ' . $base_selector . ' .kt-info-svg-icon-flip, ' . $base_selector . ' .kt-blocks-info-box-number' ); $css->add_property( 'font-size', $media_icon['mobileSize'] . 'px' ); $css->set_media_state( 'desktop' ); }