mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-10 09:19:27 +00:00
4c0d5ede86
This PR correctly associates label and text input of the shelves filter via for- and id-attributes. With the association in place, the aria-label can be removed (the label will be announced by assistive software when the input is focused). This also fixes the issue that the aria-label was not translated, whereas the label is.
10 lines
412 B
HTML
10 lines
412 B
HTML
{% extends 'snippets/filters_panel/filter_field.html' %}
|
|
{% load i18n %}
|
|
|
|
{% block filter %}
|
|
<div class="control">
|
|
<label class="label" for="my-books-filter">{% trans 'Filter by keyword' %}</label>
|
|
<input id="my-books-filter" class="input" type="text" name="filter" placeholder="{% trans 'Enter text here' %}" value="{{ shelves_filter_query|default:'' }}" spellcheck="false" />
|
|
</div>
|
|
{% endblock %}
|