[A11y] add main-landmark to all presale pages (#5332)

This commit is contained in:
Richard Schreiber
2025-07-30 14:30:45 +02:00
committed by GitHub
parent 23b07e29cd
commit 4d9f1a8efc
5 changed files with 2 additions and 8 deletions

View File

@@ -65,8 +65,10 @@
{% endblock %}
</header>
<div class="container main-box">
<main id="content">
{% block page %}
{% endblock %}
</main>
<footer>
{% block footer %}
{% endblock %}

View File

@@ -53,10 +53,8 @@
</a>
{% endif %}
</aside>
<main aria-label="{% trans "Checkout" %}">
<h2>{% trans "Checkout" %}</h2>
{% include "pretixpresale/event/fragment_checkoutflow.html" %}
{% block inner %}
{% endblock %}
</main>
{% endblock %}

View File

@@ -7,7 +7,6 @@
{% load getitem %}
{% block title %}{% trans "Review order" %}{% endblock %}
{% block content %}
<main aria-label="{% trans "Review order" %}">
<h2>{% trans "Review order" %}</h2>
{% include "pretixpresale/event/fragment_checkoutflow.html" %}
<p>{% trans "Please review the details below and confirm your order." %}</p>
@@ -214,5 +213,4 @@
<div class="clearfix"></div>
</div>
</form>
</main>
{% endblock %}

View File

@@ -47,7 +47,6 @@
{{ ev.event_microdata }}
</script>
{% endautoescape %}
<main aria-label="{% if show_cart %}{% trans "Your cart, general information, add products to your cart" %}{% else %}{% trans "General information, add products to your cart" %}{% endif %}">
{% if show_cart %}
{% include "pretixpresale/event/fragment_cart_box.html" with open=1 %}
{% endif %}
@@ -244,7 +243,6 @@
</form>
{% endif %}
{% endif %}
</main>
{% if show_vouchers %}
<aside class="front-page" aria-labelledby="redeem-a-voucher">
<h2 class="h3" id="redeem-a-voucher">{% trans "Redeem a voucher" %}</h2>

View File

@@ -22,7 +22,6 @@
{% trans "Order details" %}
{% endblock %}
{% block content %}
<main>
{% if "thanks" in request.GET or "paid" in request.GET %}
<div class="thank-you">
<span class="fa fa-check-circle" aria-hidden="true"></span>
@@ -484,5 +483,4 @@
</ul>
</div>
{% endif %}
</main>
{% endblock %}