clear-input recherche

This commit is contained in:
2025-06-05 14:31:27 +02:00
parent 69ecedae66
commit 2f21024995
5 changed files with 99 additions and 11 deletions
@@ -12,6 +12,17 @@
* @ingroup themeable
*/
#}
<div class="input-wrapper">
<input{{ attributes }} />{{ children }}
<div class="input-wrapper search-with-clear">
<input{{ attributes }} />{{ children }}
{% if attributes.id == 'edit-combine' %}
<button type="button" class="clear-input" aria-label="Effacer la recherche">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
{% endif %}
</div>