From b31602b0401fc671238d8bc62fc0afdb26688b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 28 Oct 2026 12:18:54 +0100 Subject: [PATCH] feat(faq): implement accordion for FAQ section Enhances the FAQ page by replacing the list with an accordion component for better user experience. --- .../fo/utilities/_bootstrap-variables.scss | 5 +++ resources/views/fo/pages/faq.blade.php | 32 +++++++++++-------- 2 files changed, 23 insertions(+), 14 deletions(-) diff --git a/resources/sass/fo/utilities/_bootstrap-variables.scss b/resources/sass/fo/utilities/_bootstrap-variables.scss index 98debd60..a9d7cdac 100644 --- a/resources/sass/fo/utilities/_bootstrap-variables.scss +++ b/resources/sass/fo/utilities/_bootstrap-variables.scss @@ -65,3 +65,8 @@ $form-file-button-bg: var(--bs-secondary-bg, #e9ecef); $form-file-button-color: var(--bs-body-color, #212529); $form-file-button-hover-bg: var(--bs-secondary-bg, #e9ecef); $form-file-button-hover-color: var(--bs-body-color, #212529); + +// * ACCORDION +$accordion-color: var(--bs-body-color); +$accordion-button-active-bg: var(--bs-primary); +$accordion-button-active-color: var(--bs-light-text); diff --git a/resources/views/fo/pages/faq.blade.php b/resources/views/fo/pages/faq.blade.php index b5512052..4839ebd3 100644 --- a/resources/views/fo/pages/faq.blade.php +++ b/resources/views/fo/pages/faq.blade.php @@ -7,26 +7,30 @@ @php view()->share('brParam', $page) @endphp @section('content') -
-
-
+
+
+
@if ($page->title)

{{ $page->title }}

@endif - @foreach ($faqs as $key => $faq) -
-
- -
-
{!! clean($faq->answer) !!}
+
+ @foreach ($faqs as $key => $faq) +
+

+ +

+
+
+
{!! clean($faq->answer) !!}
+
-
- @endforeach + @endforeach +