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

VOTE-2328: Move #main-content id to fix andi tab order #843

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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