Skip to content

Commit

Permalink
adjusting nav link typography
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-c-woodard committed Aug 20, 2024
1 parent 6fdccb5 commit 5e3fa1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down Expand Up @@ -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)' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5e3fa1f

Please sign in to comment.