From 8f2f886411eae6e78d0102684ab71594a2a9bea9 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 4 May 2023 15:09:01 +0200 Subject: Add required accessibility attributes to legacy files navigation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: John Molakvoæ Signed-off-by: Ferdinand Thiessen --- apps/files/src/files-app-settings.js | 1 + apps/files/templates/appnavigation.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/files') diff --git a/apps/files/src/files-app-settings.js b/apps/files/src/files-app-settings.js index 491ea127ccd..e38600feebe 100644 --- a/apps/files/src/files-app-settings.js +++ b/apps/files/src/files-app-settings.js @@ -52,6 +52,7 @@ window.addEventListener('DOMContentLoaded', function() { appSettingsHeader.addEventListener('click', e => { const opened = e.currentTarget.children[0].classList.contains('opened') OCA.Files.Settings.settings.forEach(e => opened ? e.close() : e.open()) + e.currentTarget?.children?.[0]?.setAttribute?.('aria-expanded', opened ? 'false' : 'true') }) } }) diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php index 5684c3d0d32..c3448afdef2 100644 --- a/apps/files/templates/appnavigation.php +++ b/apps/files/templates/appnavigation.php @@ -30,11 +30,13 @@
-
+