summaryrefslogtreecommitdiffstats
path: root/core/src/OC
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-07-01 00:33:30 +0000
committernextcloud-command <nextcloud-command@users.noreply.github.com>2022-07-01 00:44:05 +0000
commit7219847ad118375faeeddfff1da869fce4992e0e (patch)
tree58fa3dfd9db266f2f6cc2600e3aa3bcf32e96a62 /core/src/OC
parent6ca1d01a5df706ffffcc448d228a8d5061b081b1 (diff)
downloadnextcloud-server-7219847ad118375faeeddfff1da869fce4992e0e.tar.gz
nextcloud-server-7219847ad118375faeeddfff1da869fce4992e0e.zip
Add accessible names for file picker grid view toggle and new folder button
Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core/src/OC')
-rw-r--r--core/src/OC/dialogs.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js
index 2ca4bbf73f9..e2996de8f12 100644
--- a/core/src/OC/dialogs.js
+++ b/core/src/OC/dialogs.js
@@ -1045,6 +1045,10 @@ const Dialogs = {
self.$showGridView
.removeClass('icon-toggle-filelist icon-toggle-pictures')
.addClass(response.gridview ? 'icon-toggle-filelist' : 'icon-toggle-pictures')
+ self.$showGridView.attr(
+ 'aria-label',
+ response.gridview ? t('files', 'Show list view') : t('files', 'Show grid view'),
+ )
$('.list-container').toggleClass('view-grid', response.gridview)
})
},
@@ -1057,6 +1061,10 @@ const Dialogs = {
this.$showGridView
.removeClass('icon-toggle-filelist icon-toggle-pictures')
.addClass(isGridView ? 'icon-toggle-pictures' : 'icon-toggle-filelist')
+ this.$showGridView.attr(
+ 'aria-label',
+ isGridView ? t('files', 'Show grid view') : t('files', 'Show list view'),
+ )
$('.list-container').toggleClass('view-grid', !isGridView)
},
_getFilePickerTemplate: function() {