From 5e3fa1f6c46cb20098178ec4382c58d6b1e3dc9b Mon Sep 17 00:00:00 2001 From: Mark Woodard Date: Tue, 20 Aug 2024 15:30:19 -0500 Subject: [PATCH] adjusting nav link typography --- .../blocks/class-kadence-blocks-navigation-link-block.php | 5 ++++- .../navigation-link/components/backend-styles/index.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/blocks/class-kadence-blocks-navigation-link-block.php b/includes/blocks/class-kadence-blocks-navigation-link-block.php index ea0a72191..fef90c657 100644 --- a/includes/blocks/class-kadence-blocks-navigation-link-block.php +++ b/includes/blocks/class-kadence-blocks-navigation-link-block.php @@ -111,7 +111,8 @@ public function build_css( $attributes, $css, $unique_id, $unique_style_id ) { } } - $css->set_selector( '.wp-block-kadence-navigation .navigation .menu-container > ul li.wp-block-kadence-navigation-link' . $unique_id . ' > .link-drop-wrap > a' ); + // .wp-block-kadence-navigation .navigation .menu-container ul xxx ul li.menu-item > .link-drop-wrap > a + $css->set_selector( '.wp-block-kadence-navigation .navigation .menu-container > ul li.wp-block-kadence-navigation-link' . $unique_id . ' > .link-drop-wrap.link-drop-wrap.link-drop-wrap > a' ); $css->render_typography( $nav_link_attributes ); $css->set_selector( '.wp-block-kadence-navigation .navigation .menu-container > ul li.wp-block-kadence-navigation-link' . $unique_id . ' > .link-drop-wrap > a .link-highlight-label' ); $css->render_typography( $nav_link_attributes, 'highlightTypography' ); @@ -224,6 +225,8 @@ public function build_css( $attributes, $css, $unique_id, $unique_style_id ) { $css->set_selector( '.wp-block-kadence-navigation .navigation .menu-container ul .wp-block-kadence-navigation-link' . $unique_id . ' ul li.menu-item > .link-drop-wrap > a' ); $css->render_measure_output( $nav_link_attributes, 'marginDropdownLink', 'margin', ['unit_key' => 'marginDropdownLinkUnit']); $css->render_measure_output( $nav_link_attributes, 'paddingDropdownLink', 'padding', ['unit_key' => 'paddingDropdownLinkUnit']); + $css->render_typography( $nav_link_attributes, 'dropdownTypography' ); + //description styles $css->set_selector( '.wp-block-kadence-navigation-link' . $unique_id . ' .menu-label-description:not(.wp-block-kadence-navigation-link' . $unique_id . ' .wp-block-kadence-navigation-link .menu-label-description)' ); diff --git a/src/blocks/navigation-link/components/backend-styles/index.js b/src/blocks/navigation-link/components/backend-styles/index.js index 0755ca554..64edb297e 100644 --- a/src/blocks/navigation-link/components/backend-styles/index.js +++ b/src/blocks/navigation-link/components/backend-styles/index.js @@ -810,7 +810,7 @@ export default function BackendStyles(props) { css.add_property('background', css.render_color(previewBackgroundDropdownActive)); css.set_selector( - `.wp-block-kadence-navigation .navigation .menu-container > ul li.wp-block-kadence-navigation-link${uniqueID} > .link-drop-wrap > a` + `.wp-block-kadence-navigation .navigation .menu-container > ul li.wp-block-kadence-navigation-link${uniqueID} > .link-drop-wrap.link-drop-wrap.link-drop-wrap > a` ); css.render_font(typography ? typography : [], previewDevice); css.set_selector(