[A11y] Remove all autofocus in control except login/auth and dashboard

This commit is contained in:
Richard Schreiber
2025-02-28 08:56:54 +01:00
committed by GitHub
parent 625bc66516
commit 018569a0d6
3 changed files with 2 additions and 16 deletions

View File

@@ -44,8 +44,7 @@
<form class="form-inline"
action="{% url "control:event.orders.go" event=request.event.slug organizer=request.event.organizer.slug %}">
<p class="input-group">
<input type="text" name="code" class="form-control" placeholder="{% trans "Order code" %}"
autofocus>
<input type="text" name="code" class="form-control" placeholder="{% trans "Order code" %}">
<span class="input-group-btn">
<button class="btn btn-primary" type="submit">{% trans "Go!" %}</button>
</span>

View File

@@ -15,7 +15,7 @@
<form class="form-inline"
action="{% url "control:event.vouchers.go" event=request.event.slug organizer=request.event.organizer.slug %}">
<p class="input-group">
<input type="text" name="code" class="form-control" placeholder="{% trans "Voucher code" %}" autofocus>
<input type="text" name="code" class="form-control" placeholder="{% trans "Voucher code" %}">
<span class="input-group-btn">
<button class="btn btn-primary" type="submit">{% trans "Go!" %}</button>
</span>