mirror of https://github.com/nextcloud/server
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>
This commit is contained in:
parent
6ca1d01a5d
commit
7219847ad1
|
@ -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() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div id="{dialog_name}" title="{title}">
|
||||
<span class="dirtree breadcrumb">
|
||||
<span class="actions creatable"><a href="#" class="icon icon-add button button-add"></a>
|
||||
<span class="actions creatable"><a href="#" class="icon icon-add button button-add" aria-label="{newtext}"></a>
|
||||
<nav class="menu popovermenu bubble menu-left newFolderMenu">
|
||||
<ul><li>
|
||||
<form class="filenameform">
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue