mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-03-30 07:05:29 +00:00
Fix label and input association for shelves filter
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.
This commit is contained in:
parent
7469f1f4ca
commit
4c0d5ede86
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
{% block filter %}
|
{% block filter %}
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<label class="label" for="filter_query">{% trans 'Filter by keyword' %}</label>
|
<label class="label" for="my-books-filter">{% trans 'Filter by keyword' %}</label>
|
||||||
<input aria-label="Filter by keyword" id="my-books-filter" class="input" type="text" name="filter" placeholder="{% trans 'Enter text here' %}" value="{{ shelves_filter_query|default:'' }}" spellcheck="false" />
|
<input id="my-books-filter" class="input" type="text" name="filter" placeholder="{% trans 'Enter text here' %}" value="{{ shelves_filter_query|default:'' }}" spellcheck="false" />
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue