summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorPytal <24800714+Pytal@users.noreply.github.com>2022-07-07 11:10:21 -0700
committerGitHub <noreply@github.com>2022-07-07 11:10:21 -0700
commita0681cc92f1276c6663509f82c2f5d899f3b795b (patch)
tree1f39c5116311ad16981a4d0fcb50090a9c29d1cb /apps
parent9d3b98ba214ad98c93750e8a392912f4737185f8 (diff)
parente0492074aa4d4a2423059db42d9c6d7fa126da94 (diff)
downloadnextcloud-server-a0681cc92f1276c6663509f82c2f5d899f3b795b.tar.gz
nextcloud-server-a0681cc92f1276c6663509f82c2f5d899f3b795b.zip
Merge pull request #33128 from nextcloud/enh/a11y-set-expanded-sharing
Add expanded attribute to button for listing others with access
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/src/components/SharingEntrySimple.vue17
-rw-r--r--apps/files_sharing/src/views/SharingInherited.vue3
2 files changed, 18 insertions, 2 deletions
diff --git a/apps/files_sharing/src/components/SharingEntrySimple.vue b/apps/files_sharing/src/components/SharingEntrySimple.vue
index de545a497a8..8627c87f97a 100644
--- a/apps/files_sharing/src/components/SharingEntrySimple.vue
+++ b/apps/files_sharing/src/components/SharingEntrySimple.vue
@@ -29,7 +29,10 @@
{{ subtitle }}
</p>
</div>
- <Actions v-if="$slots['default']" menu-align="right" class="sharing-entry__actions">
+ <Actions v-if="$slots['default']"
+ class="sharing-entry__actions"
+ menu-align="right"
+ :aria-expanded="ariaExpandedValue">
<slot />
</Actions>
</li>
@@ -68,8 +71,20 @@ export default {
type: Boolean,
default: true,
},
+ ariaExpanded: {
+ type: Boolean,
+ default: null,
+ },
},
+ computed: {
+ ariaExpandedValue() {
+ if (this.ariaExpanded === null) {
+ return this.ariaExpanded
+ }
+ return this.ariaExpanded ? 'true' : 'false'
+ },
+ },
}
</script>
diff --git a/apps/files_sharing/src/views/SharingInherited.vue b/apps/files_sharing/src/views/SharingInherited.vue
index 3a3e4b633e2..27ab59c4729 100644
--- a/apps/files_sharing/src/views/SharingInherited.vue
+++ b/apps/files_sharing/src/views/SharingInherited.vue
@@ -25,7 +25,8 @@
<!-- Main collapsible entry -->
<SharingEntrySimple class="sharing-entry__inherited"
:title="mainTitle"
- :subtitle="subTitle">
+ :subtitle="subTitle"
+ :aria-expanded="showInheritedShares">
<template #avatar>
<div class="avatar-shared icon-more-white" />
</template>