Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jenbreese committed Nov 9, 2023
1 parent 4a9e4e2 commit 388d302
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
4 changes: 0 additions & 4 deletions themes/stanford_basic/dist/js/behaviors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 0 additions & 4 deletions themes/stanford_basic/src/js/stanford_basic.behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@
{% if not configuration.label_display %}
{% set title_attributes = title_attributes.addClass('visually-hidden') %}
{% endif %}

{{ title_prefix }}
<h2{{ title_attributes.setAttribute('id', heading_id) }}>{{ configuration.label }}</h2>
<h2{{ title_attributes.setAttribute('id', heading_id) }} {% if not configuration.label_display %}aria-hidden=true{% endif %}>{{ configuration.label }}</h2>
{{ title_suffix }}

{# Menu. #}
Expand Down

0 comments on commit 388d302

Please sign in to comment.