Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add required accessibility attributes to legacy files navigation
Co-authored-by: John Molakvoæ <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux and skjnldsv committed May 15, 2023
commit 8f2f886411eae6e78d0102684ab71594a2a9bea9
1 change: 1 addition & 0 deletions apps/files/src/files-app-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
}
})
4 changes: 3 additions & 1 deletion apps/files/templates/appnavigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading