summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-08-31 11:57:31 +0200
committerGitHub <noreply@github.com>2022-08-31 11:57:31 +0200
commit809f448ef7ee58980c56bb70a48495efd1f26894 (patch)
tree41d7afd861b9836dc0ae29f97ab84d62fe2ef4fe /apps/files/js
parent23bb4f16f9056e7a79116129c7de5b59cf84f8be (diff)
parentcc53efe4dd8c962a0900582c1e919a8f8182c183 (diff)
downloadnextcloud-server-809f448ef7ee58980c56bb70a48495efd1f26894.tar.gz
nextcloud-server-809f448ef7ee58980c56bb70a48495efd1f26894.zip
Merge pull request #33746 from nextcloud/a11y/33739/fix-legacy-nav
Add a11y attributes for legacy app navigation
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/navigation.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/navigation.js b/apps/files/js/navigation.js
index 8a2cddb3f52..d7ae7dd7fee 100644
--- a/apps/files/js/navigation.js
+++ b/apps/files/js/navigation.js
@@ -141,13 +141,13 @@
}
return;
}
- this.$el.find('li a').removeClass('active');
+ this.$el.find('li a').removeClass('active').removeAttr('aria-current');
if (this.$currentContent) {
this.$currentContent.addClass('hidden');
this.$currentContent.trigger(jQuery.Event('hide'));
}
this._activeItem = itemId;
- currentItem.children('a').addClass('active');
+ currentItem.children('a').addClass('active').attr('aria-current', 'page');
this.$currentContent = $('#app-content-' + (typeof itemView === 'string' && itemView !== '' ? itemView : itemId));
this.$currentContent.removeClass('hidden');
if (!options || !options.silent) {