feat(reservation): Affiche les produits 3-15 ans et trie les formules par position.

🎨 style(reserve.js): Change la couleur du texte du filtre actif en noir.
This commit is contained in:
Serreau Jovann
2026-01-30 12:48:11 +01:00
parent 53878e467a
commit 6f684e9dda
2 changed files with 5 additions and 5 deletions

View File

@@ -220,8 +220,8 @@ const initCatalogueSearch = () => {
btn.onclick = () => {
const category = btn.dataset.filter.toLowerCase();
let count = 0;
filters.forEach(f => f.classList.remove('bg-slate-900', 'text-white'));
btn.classList.add('bg-slate-900', 'text-white');
filters.forEach(f => f.classList.remove('bg-slate-900', 'text-black'));
btn.classList.add('bg-slate-900', 'text-black');
products.forEach(item => {
const isVisible = category === 'all' || (item.dataset.category || '').toLowerCase().includes(category);
@@ -273,7 +273,7 @@ document.addEventListener('turbo:load', () => {
initMobileMenu();
initRegisterLogic();
initCatalogueSearch();
// Initialize AOS
AOS.init({
duration: 800,