From c66a21a5a17e199430c498be5dc13db14566184e Mon Sep 17 00:00:00 2001 From: AucT Date: Wed, 13 Nov 2024 09:28:16 +0200 Subject: [PATCH] remove role from mobile tabs to fix pagespeed --- themes/beaver/assets/js/tabs.js | 2 +- .../layouts/partials/page/use-cases.html | 26 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/themes/beaver/assets/js/tabs.js b/themes/beaver/assets/js/tabs.js index c7562f5e..b435f591 100644 --- a/themes/beaver/assets/js/tabs.js +++ b/themes/beaver/assets/js/tabs.js @@ -2,7 +2,7 @@ document.querySelectorAll('.js-tab').forEach(el => { const container = el.closest('.js-tabs-container'); el.onclick = function (e) { const targetTab = e.target; - const panel = document.getElementById(targetTab.getAttribute('aria-controls')); + const panel = document.getElementById(targetTab.getAttribute('data-controls')); container.querySelectorAll(".tab-panel").forEach(panel => panel.hidden = true); panel.hidden = false; container.querySelectorAll(".js-tab").forEach(tabTitle => tabTitle.setAttribute('aria-selected', 'false')); diff --git a/themes/beaver/layouts/partials/page/use-cases.html b/themes/beaver/layouts/partials/page/use-cases.html index e99728dc..2fccaf9d 100644 --- a/themes/beaver/layouts/partials/page/use-cases.html +++ b/themes/beaver/layouts/partials/page/use-cases.html @@ -10,29 +10,29 @@

Delivering positive technology outcomes

- @@ -50,7 +50,7 @@

Startup MVP Prototyping & Development