aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/FileEntry.vue
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-03-25 14:33:14 +0100
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-04-06 14:49:32 +0200
commit2b251999a288d59242b912b6fc5634e655ddf5ad (patch)
tree4964af85fa6e9243ce5c2fc1b7087410929b502d /apps/files/src/components/FileEntry.vue
parent6358e9752f011569a9f1853774db6ff9bff2005c (diff)
downloadnextcloud-server-2b251999a288d59242b912b6fc5634e655ddf5ad.tar.gz
nextcloud-server-2b251999a288d59242b912b6fc5634e655ddf5ad.zip
fix(files): accessibility tab into recycled invisible files rows
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/src/components/FileEntry.vue')
-rw-r--r--apps/files/src/components/FileEntry.vue9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue
index 1c96a7da3e1..b0324a6ab4a 100644
--- a/apps/files/src/components/FileEntry.vue
+++ b/apps/files/src/components/FileEntry.vue
@@ -51,7 +51,7 @@
</span>
<!-- File name -->
- <span>{{ displayName }}</span>
+ <span class="files-list__row-name-text">{{ displayName }}</span>
</a>
</td>
@@ -298,7 +298,14 @@ export default Vue.extend({
active(active) {
if (active === false) {
this.resetState()
+
+ // When the row is not active anymore
+ // remove the tabindex from the row
+ this.$el.parentNode.style.display = 'none'
+ return
}
+ // Restore default tabindex
+ this.$el.parentNode.style.removeProperty('display')
},
/**
* When the source changes, reset the preview