From 9661a4e67d21a73c1848145c0d5fe364f820b3af Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Tue, 9 Jul 2024 14:37:44 -0400 Subject: [PATCH] Local navigation: Use `has-separator` class for "personal" navigation items See https://github.com/WordPress/wporg-mu-plugins/commit/f7c14251a30ac86ae26e176f8a1a068e95578e39 --- .../themes/pub/wporg-learn-2024/functions.php | 5 +++-- .../wporg-learn-2024/src/style/_local-nav.scss | 15 --------------- .../pub/wporg-learn-2024/src/style/style.scss | 1 - 3 files changed, 3 insertions(+), 18 deletions(-) delete mode 100644 wp-content/themes/pub/wporg-learn-2024/src/style/_local-nav.scss diff --git a/wp-content/themes/pub/wporg-learn-2024/functions.php b/wp-content/themes/pub/wporg-learn-2024/functions.php index 2d4b7c1a3..7a8fe4c20 100644 --- a/wp-content/themes/pub/wporg-learn-2024/functions.php +++ b/wp-content/themes/pub/wporg-learn-2024/functions.php @@ -143,8 +143,9 @@ function add_site_navigation_menus( $menus ) { 'url' => '/online-workshops/', ), array( - 'label' => __( 'My courses', 'wporg-learn' ), - 'url' => get_my_courses_page_url(), + 'label' => __( 'My courses', 'wporg-learn' ), + 'url' => get_my_courses_page_url(), + 'className' => 'has-separator', ), ); diff --git a/wp-content/themes/pub/wporg-learn-2024/src/style/_local-nav.scss b/wp-content/themes/pub/wporg-learn-2024/src/style/_local-nav.scss deleted file mode 100644 index fbd2bb55a..000000000 --- a/wp-content/themes/pub/wporg-learn-2024/src/style/_local-nav.scss +++ /dev/null @@ -1,15 +0,0 @@ -.wp-block-wporg-local-navigation-bar { - &:not(.wporg-show-collapsed-nav) { - [href*="my-courses"] { - padding-left: var(--wp--style--block-gap); - - &::before { - content: "\2022"; - inset-inline-start: -5px; - opacity: 0.4; - position: absolute; - } - - } - } -} diff --git a/wp-content/themes/pub/wporg-learn-2024/src/style/style.scss b/wp-content/themes/pub/wporg-learn-2024/src/style/style.scss index abda98e06..4156e1296 100644 --- a/wp-content/themes/pub/wporg-learn-2024/src/style/style.scss +++ b/wp-content/themes/pub/wporg-learn-2024/src/style/style.scss @@ -5,7 +5,6 @@ @import "card-grid"; @import "jetpack"; -@import "local-nav"; @import "sensei"; @import "sidebar"; @import "search";