Skip to content

Commit

Permalink
D8CORE-7668: Adjust skip secondary nav anchor link
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Dec 9, 2024
1 parent 475ec65 commit 8ebcf8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
{% set attributes = attributes.setAttribute('aria-labelledby', button_label) %}
{% set attributes = attributes.addClass(classes) %}

<a href="#main-content" class="visually-hidden focusable su-skipnav su-skipnav--content">{{ 'Skip to main content'|t }}</a>
<a href="#main-content" class="visually-hidden focusable su-skipnav su-skipnav--content">{{ 'Skip Secondary Navigation'|t }}</a>
<nav{{ attributes }}>
<div id="secondary-navigation" tabindex="-1" class="visually-hidden focusable">{{ 'Secondary Navigation'|t }}</div>
{# Label. If not displayed, we still provide it for screen readers. #}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{% set attributes = attributes.setAttribute('aria-label', aria_label|default('secondary menu')) %}
{# Macros #}
{%- import "@basic/menus/macros/secondary-nav-menu.twig" as menus -%}
<a href="#main-content" class="visually-hidden focusable su-skipnav su-skipnav--content">{{ 'Skip to main content'|t }}</a>
<a href="#main-content" class="visually-hidden focusable su-skipnav su-skipnav--content">{{ 'Skip Secondary Navigation'|t }}</a>
<nav{{ attributes }}>
<div id="secondary-navigation" tabindex="-1" class="visually-hidden focusable">{{ 'Secondary Navigation'|t }}</div>
{% apply spaceless %}
Expand Down

0 comments on commit 8ebcf8f

Please sign in to comment.