diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-07-06 23:08:07 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-07-07 17:23:50 +0000 |
commit | e0492074aa4d4a2423059db42d9c6d7fa126da94 (patch) | |
tree | 897aa102a11d49e7111c4cea3dedec4e17b82cfe /apps | |
parent | 744f1dd5638c7924be9c19621033d67991c65fd2 (diff) | |
download | nextcloud-server-e0492074aa4d4a2423059db42d9c6d7fa126da94.tar.gz nextcloud-server-e0492074aa4d4a2423059db42d9c6d7fa126da94.zip |
Add expanded attribute to button for listing others with access
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/src/components/SharingEntrySimple.vue | 17 | ||||
-rw-r--r-- | apps/files_sharing/src/views/SharingInherited.vue | 3 |
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> |