From 388d302f3d2bd4dc019c19dbbd773a3e4d938fbf Mon Sep 17 00:00:00 2001 From: Jen Breese-Kauth Date: Thu, 9 Nov 2023 23:14:16 +0000 Subject: [PATCH] fixup --- themes/stanford_basic/dist/js/behaviors.js | 4 ---- themes/stanford_basic/src/js/stanford_basic.behavior.js | 4 ---- .../templates/block/block--system-menu-block.html.twig | 3 ++- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/themes/stanford_basic/dist/js/behaviors.js b/themes/stanford_basic/dist/js/behaviors.js index f3686a3f2..1bb24a83d 100644 --- a/themes/stanford_basic/dist/js/behaviors.js +++ b/themes/stanford_basic/dist/js/behaviors.js @@ -65,10 +65,6 @@ window.Drupal.behaviors.stanford_basic = { $('.su-skipnav--secondary', context).remove(); } - // Put an aria-hidden=true on the visually hidden block block title - // for the secondary navigation menu. - $('#menu-blockmain-menu').attr('aria-hidden', 'true'); - // Check for search box and move the second block to the mobile navigation. // Hide it and then only show for mobile sites. var $search = $('.su-masthead .su-site-search', context); diff --git a/themes/stanford_basic/src/js/stanford_basic.behavior.js b/themes/stanford_basic/src/js/stanford_basic.behavior.js index 554227130..903f36c5b 100644 --- a/themes/stanford_basic/src/js/stanford_basic.behavior.js +++ b/themes/stanford_basic/src/js/stanford_basic.behavior.js @@ -26,10 +26,6 @@ export default { $('.su-skipnav--secondary', context).remove(); } - // Put an aria-hidden=true on the visually hidden block block title - // for the secondary navigation menu. - $('#menu-blockmain-menu').attr('aria-hidden', 'true'); - // Check for search box and move the second block to the mobile navigation. // Hide it and then only show for mobile sites. const $search = $('.su-masthead .su-site-search', context); diff --git a/themes/stanford_basic/templates/block/block--system-menu-block.html.twig b/themes/stanford_basic/templates/block/block--system-menu-block.html.twig index 03613ed7b..4189773d2 100755 --- a/themes/stanford_basic/templates/block/block--system-menu-block.html.twig +++ b/themes/stanford_basic/templates/block/block--system-menu-block.html.twig @@ -45,8 +45,9 @@ {% if not configuration.label_display %} {% set title_attributes = title_attributes.addClass('visually-hidden') %} {% endif %} + {{ title_prefix }} - {{ configuration.label }} + {{ configuration.label }} {{ title_suffix }} {# Menu. #}