✨ feat(template/recherche): Ajoute des labels ARIA pour améliorer l'accessibilité.
This commit is contained in:
@@ -26,8 +26,8 @@
|
||||
<form action="{{ url('reservation_search') }}" method="get" class="max-w-2xl mx-auto relative">
|
||||
<input type="text" name="q" value="{{ app.request.query.get('q') }}"
|
||||
class="w-full pl-5 pr-12 py-4 rounded-2xl border-none shadow-lg focus:ring-2 focus:ring-blue-500 transition-all text-gray-700"
|
||||
placeholder="{{ 'search.form.placeholder'|trans }}">
|
||||
<button type="submit" class="absolute right-3 top-3 bg-blue-600 text-white p-2 rounded-xl hover:bg-blue-700 transition-colors">
|
||||
placeholder="{{ 'search.form.placeholder'|trans }}" aria-label="{{ 'search.form.placeholder'|trans }}">
|
||||
<button type="submit" class="absolute right-3 top-3 bg-blue-600 text-white p-2 rounded-xl hover:bg-blue-700 transition-colors" aria-label="{{ 'search.form.submit'|trans }}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
|
||||
</svg>
|
||||
@@ -62,7 +62,7 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<a href="{{ product.link }}" class="bg-white p-3 rounded-2xl hover:bg-blue-50 transition-colors shadow-lg">
|
||||
<a href="{{ product.link }}" class="bg-white p-3 rounded-2xl hover:bg-blue-50 transition-colors shadow-lg" aria-label="{{ 'search.product.view'|trans({'%name%': product.name}) }}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-blue-600" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 5l7 7m0 0l-7 7m7-7H3" />
|
||||
</svg>
|
||||
|
||||
Reference in New Issue
Block a user