diff --git a/css/area_main-sidebar-nav.less b/css/area_main-sidebar-nav.less index 6565b61..43e1c53 100755 --- a/css/area_main-sidebar-nav.less +++ b/css/area_main-sidebar-nav.less @@ -11,7 +11,10 @@ margin-left: @menu-margin; // moves *all* sidebar content to the right // the toggle element - h6 { + a.nav { + font-size: @font-size-head6; + margin: 0 0 @font-size-head6; + cursor: pointer; font-weight: normal; margin-left: (@menu-margin * -1); // moves the toggles back to the left diff --git a/js/sidebar.js b/js/sidebar.js index fd2c9b2..60245bd 100644 --- a/js/sidebar.js +++ b/js/sidebar.js @@ -74,7 +74,9 @@ jQuery(function () { } // make the new toggler - const $toggler = jQuery('
') + const $toggler = jQuery('') + .addClass('nav') + .attr('href', '#') .attr('role', 'heading') .attr('aria-level', '2') .text(text) @@ -102,8 +104,9 @@ jQuery(function () { * Initialize the open/close toggling of menu entries */ const initMenuHandling = function () { - $nav.on('click', 'h6', function () { + $nav.on('click', 'a', function (e) { toggleNav(jQuery(this)); + e.preventDefault(); }); }; diff --git a/tpl/main-sidebar-nav.php b/tpl/main-sidebar-nav.php index dad01bb..4c179b5 100644 --- a/tpl/main-sidebar-nav.php +++ b/tpl/main-sidebar-nav.php @@ -4,12 +4,11 @@ ?> -