search-cell: improve markup to target button and button label (#57570)

This commit is contained in:
Thomas Jund 2021-10-04 17:35:36 +02:00
parent 4262533fec
commit 377cbcc955
1 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,9 @@
{% block search-form %}
<form id="combo-search-form-{{ cell.pk }}" class="combo-search-form">
<input type="search" name="q" autocomplete="off" id="combo-search-input-{{ cell.pk }}" class="combo-search-input" {% if cell.autofocus %}autofocus {% endif %}{% if cell.input_placeholder %}placeholder="{{ cell.input_placeholder }}" {% endif %}/>
<button class="submit-button" aria-label="{% trans 'Search' %}">{% block submit-content %}{% trans 'Search' %}{% endblock %}</button>
<button class="submit-button combo-search--button" aria-label="{% trans 'Search' %}">
<span class="combo-search--button-label">{% block submit-content %}{% trans 'Search' %}{% endblock %}</span>
</button>
</form>
{% endblock %}