Skip to content

Commit

Permalink
VOTE-2328: move main-content id fixing andi tab order (#843)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlloydbixal authored Jul 11, 2024
1 parent 833f791 commit 9e9e372
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{% extends "page.html.twig" %}

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

{{ page.content }}
</main>
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
{% set title = drupal_title() %}

{% block main %}
<main role="main" id="main">
<a id="main-content" tabindex="-1"></a>
<main role="main" id="main-content">
<section class="vote-hero vote-hero--dark">
<div class="vote-hero__container">
<div class="vote-hero__callout">
Expand Down
8 changes: 2 additions & 6 deletions web/themes/custom/votegov/templates/layout/page.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@

{% block main %}
{% if page.sidebar %}
<section class="grid-container content-container">
{# link is in html.html.twig #}
<a id="main-content" tabindex="-1"></a>
<section id="main-content" class="grid-container content-container">
<div class="page-masthead {{ node_image ? "page-masthead--image-offset" }}">
{# Breadcrumbs component. #}
{{ drupal_entity('block', 'votegov_breadcrumbs') }}
Expand All @@ -117,9 +115,7 @@
</div>
</section>
{% else %}
<main role="main" id="main" class="grid-container content-container">
{# link is in html.html.twig #}
<a id="main-content" tabindex="-1"></a>
<main role="main" id="main-content" class="grid-container content-container">
<div class="page-masthead {{ node_image ? "page-masthead--image-offset" }}">
{# Breadcrumbs component. #}
{{ drupal_entity('block', 'votegov_breadcrumbs') }}
Expand Down

0 comments on commit 9e9e372

Please sign in to comment.