diff --git a/static/js/src/navigation.js b/static/js/src/navigation.js index 3009493a71d..eb04956374a 100644 --- a/static/js/src/navigation.js +++ b/static/js/src/navigation.js @@ -59,10 +59,10 @@ mainList.addEventListener("click", function (e) { handleDropdownClick(e.target.parentNode); } } else if ( - target.classList.contains("p-navigation__dropdown") && - target.tagName == "A" + target.classList.contains("p-navigation__dropdown-item") || + (target.classList.contains("p-navigation__secondary-link") && + target.tagName == "A") ) { - // This handles the globa-nav using a slightly different class naming convention window.location.href = target.href; } }); diff --git a/static/sass/_pattern_navigation.scss b/static/sass/_pattern_navigation.scss index 0024588aba1..2eedb1a6b43 100644 --- a/static/sass/_pattern_navigation.scss +++ b/static/sass/_pattern_navigation.scss @@ -38,6 +38,10 @@ $meganav-height: 3rem; top: 0; z-index: 40; + .p-navigation__secondary-link { + @extend .dropdown-window__side-panel-link; + } + .p-link--inverted { font-weight: 400; } diff --git a/templates/templates/meganav/base.html b/templates/templates/meganav/base.html index 0a435a7013d..0ff848ebc6e 100644 --- a/templates/templates/meganav/base.html +++ b/templates/templates/meganav/base.html @@ -244,7 +244,7 @@
{{ links_section.title }}
{% for link in links_section.links %}