ajout du bouton de switch + quelque reglage des input

This commit is contained in:
antonin gallon 2025-11-21 15:32:57 +01:00
parent af6feaf913
commit 57b2e432e2
10 changed files with 48 additions and 11 deletions

View file

@ -7,9 +7,7 @@
</p>
<div class="search">
<input class="search__input" type="text" placeholder="Chercher" x-model="search">
<img x-show="search.length === 0"
src="<?= url('assets/images/icons/search.svg') ?>"
class="search__icon" alt="Icône loupe indiquant le champ de recherche.">
<div class="search__icon"></div>
<button x-show="search.length > 0" @click="search = ''" class="search__icon">
<img
src="<?= url('assets/images/icons/close.svg') ?>"