diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-05-04 15:09:01 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-05-15 14:10:22 +0200 |
commit | 8f2f886411eae6e78d0102684ab71594a2a9bea9 (patch) | |
tree | 7c77fc64c35df1e86e763e790ff3d3b934c03e76 /apps/files | |
parent | dee180409b9b245ce9bdc78e1aacdfb85ae7055d (diff) | |
download | nextcloud-server-8f2f886411eae6e78d0102684ab71594a2a9bea9.tar.gz nextcloud-server-8f2f886411eae6e78d0102684ab71594a2a9bea9.zip |
Add required accessibility attributes to legacy files navigation
Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/src/files-app-settings.js | 1 | ||||
-rw-r--r-- | apps/files/templates/appnavigation.php | 4 |
2 files changed, 4 insertions, 1 deletions
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 @@ <div id="app-settings"> <div id="app-settings-header"> <button class="settings-button" + aria-expanded="false" + aria-controls="app-settings-content" data-apps-slide-toggle="#app-settings-content"> <?php p($l->t('Files settings')); ?> </button> </div> - <div id="app-settings-content"> + <div id="app-settings-content" role="region" aria-labelledby="app-settings-header"> <div id="files-app-settings"></div> <div id="files-setting-showhidden"> <input class="checkbox" id="showhiddenfilesToggle" |