From c4f70239083b2dd9be4824c25de737894b5e7a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Cu=C3=A9llar=20Hidalgo?= Date: Sat, 7 Dec 2024 12:53:42 -0600 Subject: [PATCH 1/2] disable set aria-expanded --- app/assets/javascripts/hyrax/collapse.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/hyrax/collapse.js b/app/assets/javascripts/hyrax/collapse.js index 47e6c6ae08..b748adb376 100644 --- a/app/assets/javascripts/hyrax/collapse.js +++ b/app/assets/javascripts/hyrax/collapse.js @@ -40,10 +40,10 @@ function getStatusActivity(){ } else if(isCollapsed){ resultDiv.classList.remove("in"); - resultDiv.setAttribute("aria-expanded", "false"); + // resultDiv.setAttribute("aria-expanded", "false"); }else{ resultDiv.classList.add("in"); - resultDiv.setAttribute("aria-expanded", "true"); + // resultDiv.setAttribute("aria-expanded", "true"); } } From f44189419f992315993c8cb63e58e0b84a79e272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Cu=C3=A9llar=20Hidalgo?= Date: Sat, 7 Dec 2024 13:02:05 -0600 Subject: [PATCH 2/2] fix #6840 --- app/assets/javascripts/hyrax/collapse.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/hyrax/collapse.js b/app/assets/javascripts/hyrax/collapse.js index b748adb376..e8b71dbd75 100644 --- a/app/assets/javascripts/hyrax/collapse.js +++ b/app/assets/javascripts/hyrax/collapse.js @@ -55,10 +55,10 @@ function getStatusSettings(){ } else if(isCollapsed){ resultDiv.classList.remove("in"); - resultDiv.setAttribute("aria-expanded", "false"); + // resultDiv.setAttribute("aria-expanded", "false"); }else{ resultDiv.classList.add("in"); - resultDiv.setAttribute("aria-expanded", "true"); + // resultDiv.setAttribute("aria-expanded", "true"); } }