Commit ed82b95e authored by xjm's avatar xjm

Issue #2784311 by Jmdrawneek@googlemail.com, mgifford, andrewmacpherson, xjm,...

Issue #2784311 by Jmdrawneek@googlemail.com, mgifford, andrewmacpherson, xjm, Cottser, tim.plunkett, dman, DomoSapiens: Skip to main content should link to main tag or similar
parent 4b3ea191
...@@ -60,8 +60,7 @@ ...@@ -60,8 +60,7 @@
{{ page.help }} {{ page.help }}
<main role="main"> <main id="main-content" role="main" tabindex="-1">{# link is in html.html.twig #}
<a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
<div class="layout-content"> <div class="layout-content">
{{ page.content }} {{ page.content }}
......
...@@ -32,9 +32,8 @@ ...@@ -32,9 +32,8 @@
</header> </header>
<div id="main-wrapper"> <div id="main-wrapper">
<div id="main" class="clearfix"> <div id="main" class="clearfix">
<main id="content" class="column" role="main"> <main id="content" class="column" role="main" tabindex="-1">
<section class="section"> <section class="section" id="main-content">
<a id="main-content"></a>
{% if title %} {% if title %}
<h1 class="title" id="page-title">{{ title }}</h1> <h1 class="title" id="page-title">{{ title }}</h1>
{% endif %} {% endif %}
......
...@@ -76,9 +76,8 @@ ...@@ -76,9 +76,8 @@
<div id="main-wrapper" class="layout-main-wrapper layout-container clearfix"> <div id="main-wrapper" class="layout-main-wrapper layout-container clearfix">
<div id="main" class="layout-main clearfix"> <div id="main" class="layout-main clearfix">
{{ page.breadcrumb }} {{ page.breadcrumb }}
<main id="content" class="column main-content" role="main"> <main id="content" class="column main-content" role="main" tabindex="-1">
<section class="section"> <section class="section" id="main-content">
<a id="main-content" tabindex="-1"></a>
{{ page.content }} {{ page.content }}
</section> </section>
</main> </main>
......
...@@ -48,8 +48,7 @@ ...@@ -48,8 +48,7 @@
<div class="layout-container"> <div class="layout-container">
{{ page.pre_content }} {{ page.pre_content }}
{{ page.breadcrumb }} {{ page.breadcrumb }}
<main class="page-content clearfix" role="main"> <main class="page-content clearfix" id="main-content" role="main" tabindex="-1">
<div class="visually-hidden"><a id="main-content" tabindex="-1"></a></div>
{{ page.highlighted }} {{ page.highlighted }}
{% if page.help %} {% if page.help %}
<div class="help"> <div class="help">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment