summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>2022-07-28 14:20:32 +0200
committerjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>2022-07-28 14:20:32 +0200
commitef3fb2844680b383667ddf3e4fdab794ee38aaeb (patch)
tree914643f87d8cccbcbaf555d8bd88ffa6badfa430 /apps
parent472f4cad47f832ac0807ac3c4aa33d60a5bcbf31 (diff)
downloadnextcloud-server-ef3fb2844680b383667ddf3e4fdab794ee38aaeb.tar.gz
nextcloud-server-ef3fb2844680b383667ddf3e4fdab794ee38aaeb.zip
Connect ```input``` checkbox with corresponding file name via ```aria-describedby```
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 1530787b83a..b02520a0768 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1694,7 +1694,7 @@
td.append(
'<input id="select-' + this.id + '-' + fileData.id +
- '" type="checkbox" class="selectCheckBox checkbox"/><label for="select-' + this.id + '-' + fileData.id + '">' +
+ '" type="checkbox" class="selectCheckBox checkbox" aria-describedby="innernametext_' + fileData.id + '" /><label for="select-' + this.id + '-' + fileData.id + '">' +
'<span class="hidden-visually">' + (fileData.type === 'dir' ?
t('files', 'Select directory "{dirName}"', {dirName: name}) :
t('files', 'Select file "{fileName}"', {fileName: name})) + '</span>' +
@@ -1744,8 +1744,9 @@
basename = name;
extension = false;
}
- var nameSpan=$('<span></span>').addClass('nametext');
- var innernameSpan = $('<span></span>').addClass('innernametext').text(basename).prop('title', basename);
+ var nameSpan=$('<span></span>').addClass('nametext')
+
+ var innernameSpan = $('<span></span>').addClass('innernametext').text(basename).prop('title', basename).prop('id', `innernametext_${fileData.id}`);
var conflictingItems = this.$fileList.find('tr[data-file="' + this._jqSelEscape(name) + '"]');