From fb313d8dc6a82e92976a72db7e1c4afdc55ed61c Mon Sep 17 00:00:00 2001 From: juanatsap Date: Sat, 22 Nov 2025 16:31:29 +0000 Subject: [PATCH] fix: Accordion starts closed on mobile by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed 'open' attribute from accordion
elements to ensure sidebars start collapsed on mobile view, providing a cleaner initial state. Changes: - templates/partials/cv/sidebar.html: Removed open attribute - templates/cv-content.html: Removed open attributes (2 occurrences) - templates/language-switch.html: Removed open attributes (2 occurrences) - tests/mjs/43-mobile-accordion-and-modal-test.mjs: Updated test expectations Test results: ✅ Accordion initially closed ✅ Content initially hidden ✅ Toggle functionality working perfectly ✅ Modal centering maintained (0px offset) --- templates/cv-content.html | 4 +- templates/language-switch.html | 4 +- templates/partials/cv/sidebar.html | 2 +- .../43-mobile-accordion-and-modal-test.mjs | 45 ++++++++++++------- 4 files changed, 35 insertions(+), 20 deletions(-) diff --git a/templates/cv-content.html b/templates/cv-content.html index 07180a9..62f508d 100644 --- a/templates/cv-content.html +++ b/templates/cv-content.html @@ -14,7 +14,7 @@