Reorder login form to match expected tab order. Fix #5274 (#5775)

Addresses the issue of incorrect tab-order when logging on using keyboard. This change moves the password reset link to the very end of the form code, while maintaining the same visual location.

* Fix lint issues
* Refactor login position to remove unused media query

Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
pull/5784/head
Kjartan Sverrisson 2020-01-23 15:53:29 +00:00 zatwierdzone przez Thibaud Colas
rodzic 11ba755f63
commit 5dcc71799e
2 zmienionych plików z 9 dodań i 4 usunięć

Wyświetl plik

@ -118,9 +118,13 @@ input[type=checkbox]:before {
opacity: 1;
position: absolute;
font-size: 1.3em;
top: 50%;
margin-top: -0.5em;
right: 5%;
top: 213px;
@include media-breakpoint-up(sm) {
top: 65%;
}
}
.messages {

Wyświetl plik

@ -52,9 +52,6 @@
{{ form.password }}
</div>
</div>
{% if show_password_reset %}
<p class="help"><a href="{% url 'wagtailadmin_password_reset' %}">{% trans "Forgotten it?" %}</a></p>
{% endif %}
</li>
{% block extra_fields %}
@ -83,6 +80,10 @@
{% endblock %}
</li>
</ul>
{% if show_password_reset %}
<p class="help"><a href="{% url 'wagtailadmin_password_reset' %}">{% trans "Forgotten it?" %}</a></p>
{% endif %}
{% endblock %}
</form>