Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-03-16 03:07:55 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-05-16 14:21:48 +0300
commitc1499519d4a57859fa69098a743430a2dc068800 (patch)
treec10816498597e9850140b4d975d68c47bdffd817 /apps/files/js/filelist.js
parentad405e93767cfaf0ba34011010bb26dc4c05f60a (diff)
Improve accessibility with more visible focus indication for non vue apps
- Add visible-focus effect on each header entry - Show focus outline when using focus-visible (keyboard navigation) - Add polyfy for focus-visible since it's only very recently available on webkit - Change text for link to home button to describe the destination and not the current page - Improve focus effect in app sidebar navigation Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 85b9e883ac6..701b635fac3 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1686,7 +1686,9 @@
td.append(
'<input id="select-' + this.id + '-' + fileData.id +
'" type="checkbox" class="selectCheckBox checkbox"/><label for="select-' + this.id + '-' + fileData.id + '">' +
- '<span class="hidden-visually">' + t('files', 'Select') + '</span>' +
+ '<span class="hidden-visually">' + (fileData.type === 'dir' ?
+ t('files', 'Select directory "{dirName}"', {dirName: name}) :
+ t('files', 'Select file "{fileName}"', {fileName: name})) + '</span>' +
'</label>'
);