Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the skip to content link in page.html.twig and html.html.twig from boostrap5 template #1006

Open
nhjohnstone opened this issue Sep 9, 2024 · 0 comments

Comments

@nhjohnstone
Copy link
Contributor

nhjohnstone commented Sep 9, 2024

in page.html.twig

remove this above <main>
<a name="main-content" aria-label="Start of content region"></a>

add under <main>
<a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}

in html.html.twig
remove

<div role="link">
  <a href="{{ canoncial_url }}#main-content" class="visually-hidden focusable">

replace with

<div class="visually-hidden-focusable skip-link p-3 container">
 <a href="#main-content" class="p-2">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant