Projet

Général

Profil

0001-search-cell-improve-markup-to-target-button-and-butt.patch

Thomas Jund (congés, retour le 29/04), 05 octobre 2021 09:43

Télécharger (1,39 ko)

Voir les différences:

Subject: [PATCH] search-cell: improve markup to target button and button label
 (#57570)

 combo/apps/search/templates/combo/search-cell.html | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
combo/apps/search/templates/combo/search-cell.html
4 4
{% block search-form %}
5 5
<form id="combo-search-form-{{ cell.pk }}" class="combo-search-form">
6 6
  <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 %}/>
7
  <button class="submit-button" aria-label="{% trans 'Search' %}">{% block submit-content %}{% trans 'Search' %}{% endblock %}</button>
7
  <button class="submit-button combo-search--button" aria-label="{% trans 'Search' %}">
8
    {% block submit-content %}<span class="combo-search--button-label">
9
      {% block submit-label %}{% trans 'Search' %}{% endblock %}
10
    </span>{% endblock %}
11
  </button>
8 12
</form>
9 13
{% endblock %}
10 14

  
11
-